From c937b54202dcb9984411808d8d7a456ba976067d Mon Sep 17 00:00:00 2001 From: BitcoinVM <18786721@qq.com> Date: Fri, 23 Feb 2024 20:21:35 +0800 Subject: [PATCH] only show int value for changes --- src/stores/useFormatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/useFormatter.ts b/src/stores/useFormatter.ts index 178e9f19..1efd1050 100644 --- a/src/stores/useFormatter.ts +++ b/src/stores/useFormatter.ts @@ -107,7 +107,7 @@ export const useFormatter = defineStore('formatter', { return info ? info[`${currency}_24h_change`] || 0 : 0; }, showChanges(v?: number) { - return v!==0 ? numeral(v).format("+0,0.[00]"): "" + return v!==0 ? numeral(v).format("+0,0"): "" }, tokenValue(token?: Coin) { if(token) {