Skip to content

Commit

Permalink
feat: fixed null wallet value
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhkeshan committed Oct 27, 2024
1 parent 84fc0fe commit 0b2e752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/show/WalletInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function WalletInfo({
<Box css={styles.container}>
<Flex direction={"column"} justify="space-around">
<Box css={styles.box}>
Wallet: {getTruncatedAddress(wallet.address.toB256())}
Wallet: {wallet && getTruncatedAddress(wallet.address.toB256())}
</Box>
<Box css={styles.disconnect}>
<span
Expand All @@ -60,7 +60,7 @@ export default function WalletInfo({
</span>
</Box>
<Box
onClick={() => copyToClipboard(wallet?.address?.toB256())}
onClick={() => copyToClipboard(wallet? wallet.address.toB256():"")}
css={styles.box}
>
Balance: {balance?.isZero() ? "0" : balance?.format({ precision: 6 })}{" "}
Expand Down

0 comments on commit 0b2e752

Please sign in to comment.