From 081421d76eb59b53021992b774c551f40eee70aa Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 29 Aug 2022 08:13:26 +0800 Subject: [PATCH] fix balances --- src/views/WalletAccounts.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/WalletAccounts.vue b/src/views/WalletAccounts.vue index 57fd929c..4f9ea5aa 100644 --- a/src/views/WalletAccounts.vue +++ b/src/views/WalletAccounts.vue @@ -452,9 +452,10 @@ export default { Object.keys(this.accounts).forEach(acc => { this.accounts[acc].address.forEach(add => { this.$http.getBankBalances(add.addr, chains[add.chain]).then(res => { - if (res && res.length > 0) { - this.$set(this.balances, add.addr, res) - res.forEach(token => { + const { balances } = res + if (balances && balances.length > 0) { + this.$set(this.balances, add.addr, balances) + balances.forEach(token => { if (token.denom.startsWith('ibc')) { this.$http.getIBCDenomTrace(token.denom, chains[add.chain]).then(denom => { this.$set(this.ibcDenom, token.denom, denom)