fix(ui): 使用 Big.js 剥离流水数据的无意义尾随零
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user