Skip to content

Commit

Permalink
fix: bigint undefine
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 2, 2024
1 parent ecce22d commit 77328ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/components/ui/wallet/balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down

0 comments on commit 77328ef

Please sign in to comment.