diff --git a/src/pages/account/chequebook/AccountChequebook.tsx b/src/pages/account/chequebook/AccountChequebook.tsx index 28f4ae09..275a381f 100644 --- a/src/pages/account/chequebook/AccountChequebook.tsx +++ b/src/pages/account/chequebook/AccountChequebook.tsx @@ -22,30 +22,37 @@ export function AccountChequebook(): ReactElement { if (status.all === CheckState.ERROR) return + const showChequebook = chequebookBalance?.totalBalance !== undefined + return ( <>
- - - - - - - - - - + {showChequebook && ( + + + + + + + + + + + )} - } - function onCheckTransactions() { window.open(`https://blockscout.com/xdai/mainnet/address/${nodeAddresses?.ethereum}/transactions`, '_blank') } @@ -47,15 +43,23 @@ export function AccountWallet(): ReactElement { - - - - - - - - - + {balance && nodeAddresses ? ( + <> + + + + + + + + + + + ) : ( + + + + )} Check transactions on Blockscout