fix account balance on the wallet menu

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2026-11-25 14:20:35 +03:00
parent b125916ee5
commit 1f648fa576
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.8.33",
"version": "0.8.34",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -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