From 88a6215a94b639a28ff96d25628f4b5c2416bb2f Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 17 Feb 2022 11:16:24 +0800 Subject: [PATCH] fixed display issue of supply --- src/views/Summary.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Summary.vue b/src/views/Summary.vue index fb25b910..ce31f50a 100644 --- a/src/views/Summary.vue +++ b/src/views/Summary.vue @@ -164,7 +164,7 @@ export default { Promise.all([this.$http.getStakingPool(), this.$http.getBankTotal(res.bond_denom)]) .then(pool => { const bondedAndSupply = this.chain.items.findIndex(x => x.subtitle === 'bonded_and_supply') - this.$set(this.chain.items[bondedAndSupply], 'title', `${formatNumber(formatTokenAmount(pool[0].bondedToken, 2, res.bond_denom), true, 0)}/${formatNumber(formatTokenAmount(pool[1].amount, 2, res.bond_denom), true, 0)}`) + this.$set(this.chain.items[bondedAndSupply], 'title', `${formatNumber(formatTokenAmount(pool[0].bondedToken, 2, res.bond_denom, false), true, 0)}/${formatNumber(formatTokenAmount(pool[1].amount, 2, res.bond_denom, false), true, 0)}`) const bondedRatio = this.chain.items.findIndex(x => x.subtitle === 'bonded_ratio') this.$set(this.chain.items[bondedRatio], 'title', `${percent(pool[0].bondedToken / pool[1].amount)}%`) })