We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a91e68 commit 8e33228Copy full SHA for 8e33228
1 file changed
app/records/page.tsx
@@ -66,6 +66,8 @@ function formatTimestamp(ts: string) {
66
}
67
68
function formatCost(value: number) {
69
+ // 0 值显示为 $0,非0值保留5位小数
70
+ if (value === 0) return "$0";
71
return `$${value.toFixed(5)}`;
72
73
0 commit comments