fixed null issue in pirce changes

This commit is contained in:
liangping 2022-05-17 08:11:11 +08:00
parent 859c7dbc20
commit 88ad420008

View File

@ -543,7 +543,7 @@ export default {
if (price > 0) {
return `+${parseFloat(price.toFixed(2))}%`
}
return price === 0 ? '' : `${parseFloat(price.toFixed(2))}%`
return ''
},
formatPrice(denom) {
const d2 = this.formatDenom(denom)