diff --git a/package.json b/package.json index 48032ec..c403947 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.8.33", + "version": "0.8.34", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/TopBar/Wallet/InitialWalletView.tsx b/src/components/TopBar/Wallet/InitialWalletView.tsx index 24fed9a..c2cc60e 100644 --- a/src/components/TopBar/Wallet/InitialWalletView.tsx +++ b/src/components/TopBar/Wallet/InitialWalletView.tsx @@ -134,9 +134,9 @@ function InitialWalletView({ isWalletOpen, address, chainId, onClose }) { } ); - const { data: accountBalanceRaw } = useSWR( - client ? ['accountBalance', client] : null, - () => casperApi.query.System.Account.getValue(account), + const { data: accountBalanceRaw, error } = useSWR( + casperApi && account?.address ? ['accountBalance', account.address] : null, + () => casperApi.query.System.Account.getValue(account.address), { refreshInterval: 12000, revalidateOnFocus: true