forked from cerc-io/cosmos-explorer
Fixed issues
This commit is contained in:
parent
173a4d8bd2
commit
b4f93790fa
@ -31,6 +31,7 @@
|
||||
"genesisL1": "Genesis L1",
|
||||
"microtick": "Microtick",
|
||||
"odin": "ODIN",
|
||||
"chihuahua": "CHIHUAHUA",
|
||||
|
||||
"staking": "Staking",
|
||||
"governance": "Governance",
|
||||
|
@ -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)
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user