Skip to content

Commit

Permalink
fix: getAccountBalance for keplr (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored Sep 24, 2024
1 parent 6384f29 commit 853984d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useAccountBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export const useAccountBalance = ({
]);

const cosmosQuery = useQuery({
enabled: Boolean(isSolanaChain && dydxAddress && solAddress && addressOrDenom),
queryKey: ['accountBalances', chainId, solAddress, addressOrDenom],
enabled: Boolean(isCosmosChain && dydxAddress && cosmosAddress && addressOrDenom),
queryKey: ['accountBalances', chainId, cosmosAddress, addressOrDenom],
queryFn: cosmosQueryFn,
refetchOnWindowFocus: false,
refetchOnMount: false,
Expand Down

0 comments on commit 853984d

Please sign in to comment.