@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user