Skip to content

Commit

Permalink
fix: null check eth balance
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Sep 28, 2023
1 parent 8ebd04e commit 7349fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/oeth/shared/src/components/AccountPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function AccountPopover({ anchor, setAnchor }: Props) {
<Stack sx={{ px: 2, py: 3 }} gap={2}>
<BalanceRow
token={tokens.mainnet.ETH}
balance={+formatUnits(eth?.value, eth?.decimals)}
balance={+formatUnits(eth?.value ?? 0n, 18)}
isBalanceLoading={ethLoading}
/>
{balanceTokens.map((tok, i) => (
Expand Down

0 comments on commit 7349fc9

Please sign in to comment.