From 853984d631c38bb49b2f999af160c328b55f618a Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 24 Sep 2024 11:21:55 -0700 Subject: [PATCH] fix: getAccountBalance for keplr (#1058) --- src/hooks/useAccountBalance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useAccountBalance.ts b/src/hooks/useAccountBalance.ts index e91b8d6fe..12d4e6a0a 100644 --- a/src/hooks/useAccountBalance.ts +++ b/src/hooks/useAccountBalance.ts @@ -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,