only show int value for changes

This commit is contained in:
BitcoinVM 2024-02-23 20:21:35 +08:00
parent 47607e7416
commit c937b54202

View File

@ -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) {