Fix IBC display issue

This commit is contained in:
liangping 2021-09-10 23:46:34 +08:00
parent 281b414cab
commit c67cb7dbb4

View File

@ -215,10 +215,13 @@ export function formatTokenDenom(tokenDenom) {
denom = denom.substring(1)
} else if (denom === 'BASECRO') {
denom = 'CRO'
} else if (denom.startsWith('IBC')) {
denom = 'IBC...'
}
return denom
}
return tokenDenom
return ''
}
export function formatTokenAmount(tokenAmount, fraction = 2, denom = 'uatom') {