parent
ecce22d0a7
commit
77328ef8db
|
|
@ -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 })
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue