Skip to content

Commit

Permalink
remove unused vars and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed May 4, 2022
1 parent 8323949 commit bc841c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions components/TokenBalance/TokenBalanceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,12 @@ const TokenDeposit = ({
const wallet = useWalletStore((s) => s.current)
const connected = useWalletStore((s) => s.connected)
const connection = useWalletStore((s) => s.connection.current)
const cluster = useWalletStore((s) => s.connection.cluster)
const { fetchWalletTokenAccounts, fetchRealm } = useWalletStore(
(s) => s.actions
)
const client = useVotePluginsClientStore(
(s) => s.state.currentRealmVotingClient
)
const pythClient = useVotePluginsClientStore((s) => s.state.pythClient)
const maxVoterWeight =
useNftPluginStore((s) => s.state.maxVoteRecord)?.pubkey || undefined
const {
Expand Down
4 changes: 1 addition & 3 deletions utils/uiTypes/VotePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,12 @@ export class VotingClient {
walletPk
)

let obj = {}
obj[type] = {}
const {
voterWeightAccount,
} = await this.client.stakeConnection.withUpdateVoterWeight(
instructions,
stakeAccount!,
obj,
{ [type]: {} },
voterWeightTarget
)

Expand Down

0 comments on commit bc841c3

Please sign in to comment.