diff --git a/src/renderer/src/components/ui/wallet/balance.tsx b/src/renderer/src/components/ui/wallet/balance.tsx index d8ab97ab3..79852fa91 100644 --- a/src/renderer/src/components/ui/wallet/balance.tsx +++ b/src/renderer/src/components/ui/wallet/balance.tsx @@ -17,7 +17,7 @@ export const Balance = ({ withSuffix?: boolean withTooltip?: boolean }) => { - const n = [BigInt(children), 18] as const + const n = [BigInt(children || 0n), 18] as const const formatted = format(n, { digits: precision, trailingZeros: true }) const formattedFull = format(n, { digits: 18, trailingZeros: true })