fix(ui): 使用 Big.js 剥离流水数据的无意义尾随零

This commit is contained in:
2026-04-29 01:01:10 +08:00
parent fd529404bc
commit 579b09841f
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -315,11 +315,11 @@ export default function DashboardPage() {
</TableCell>
<TableCell className="text-right text-xs">
<div className="flex flex-col items-end">
<span>: {tx.quantity}</span>
<span>: {tx.price}</span>
<span>: {new Big(tx.quantity).toString()}</span>
<span>: {new Big(tx.price).toString()}</span>
</div>
</TableCell>
<TableCell className="text-right text-xs">{tx.fee || '0'}</TableCell>
<TableCell className="text-right text-xs">{new Big(tx.fee || 0).toString()}</TableCell>
<TableCell className="text-xs text-muted-foreground">-</TableCell>
<TableCell className="text-right">
<div className="flex items-center justify-end gap-1">