Skip to content

Commit

Permalink
Fix refresh for delegation status and voting power (#664)
Browse files Browse the repository at this point in the history
Signed-off-by: Manank Patni <manank321@gmail.com>
  • Loading branch information
Man-Jain authored Sep 19, 2023
1 parent d4ce63b commit b4ea7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/contracts/token/hooks/useDelegationStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useDelegationStatus = (tokenAddress: string | undefined) => {
}
},
{
enabled: !!tokenAddress
enabled: !!tokenAddress && !!account
}
)

Expand Down
2 changes: 1 addition & 1 deletion src/services/contracts/token/hooks/useTokenVoteWeight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useTokenVoteWeight = (tokenAddress: string | undefined) => {
}
},
{
enabled: !!tokenAddress
enabled: !!tokenAddress && !!account
}
)

Expand Down

0 comments on commit b4ea7fd

Please sign in to comment.