diff --git a/src/lang/locales/en.json b/src/lang/locales/en.json index 50fe6739..14702c57 100644 --- a/src/lang/locales/en.json +++ b/src/lang/locales/en.json @@ -31,6 +31,7 @@ "genesisL1": "Genesis L1", "microtick": "Microtick", "odin": "ODIN", + "chihuahua": "CHIHUAHUA", "staking": "Staking", "governance": "Governance", diff --git a/src/libs/data/data.js b/src/libs/data/data.js index 41abd87b..e09d3a89 100644 --- a/src/libs/data/data.js +++ b/src/libs/data/data.js @@ -277,7 +277,7 @@ export function isToken(value) { } export function formatTokenDenom(tokenDenom) { - if (tokenDenom) { + if (tokenDenom && tokenDenom.code === undefined) { let denom = tokenDenom.denom_trace ? tokenDenom.denom_trace.base_denom.toUpperCase() : tokenDenom.toUpperCase() if (denom.charAt(0) === 'U' && denom !== 'USDX') { denom = denom.substring(1) diff --git a/src/views/WalletAccountDetail.vue b/src/views/WalletAccountDetail.vue index 0a219508..63031241 100644 --- a/src/views/WalletAccountDetail.vue +++ b/src/views/WalletAccountDetail.vue @@ -469,7 +469,7 @@ export default { let stakingDenom = '' - if (this.delegations) { + if (this.delegations && this.delegations.length > 0) { let temp = 0 this.delegations.forEach(x => { const xh = x.balance @@ -554,7 +554,7 @@ export default { }, deleTable() { const re = [] - if (this.reward.rewards && this.delegations) { + if (this.reward.rewards && this.delegations && this.delegations.length > 0) { this.delegations.forEach(e => { const reward = this.reward.rewards.find(r => r.validator_address === e.delegation.validator_address) re.push({