fix account balance on the wallet menu
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
b125916ee5
commit
1f648fa576
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.8.33",
|
||||
"version": "0.8.34",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user