feat: set precision to 2

This commit is contained in:
DIYgod 2024-10-18 02:10:36 +08:00
parent 78db8ad50f
commit 6333c7d4d0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ function PowerButton({ isLoading, myWallet }: { isLoading: boolean; myWallet?: W
{isLoading ? (
<span className="h-3 w-8 animate-pulse rounded-xl bg-theme-inactive" />
) : (
<Balance>{BigInt(myWallet?.powerToken || 0n)}</Balance>
<Balance precision={0}>{BigInt(myWallet?.powerToken || 0n)}</Balance>
)}
</div>
)

View File

@ -8,7 +8,7 @@ export const Balance = ({
children,
value,
className,
precision = 0,
precision = 2,
withSuffix = false,
withTooltip = false,
}: {