fix price fetch issue
This commit is contained in:
parent
1c3d090765
commit
2883f1bfe7
@ -432,13 +432,20 @@ export default {
|
|||||||
if (x.denom.startsWith('ibc/')) {
|
if (x.denom.startsWith('ibc/')) {
|
||||||
chainAPI.getIBCDenomTraceText(this.$http.config.api, x.denom).then(denom => {
|
chainAPI.getIBCDenomTraceText(this.$http.config.api, x.denom).then(denom => {
|
||||||
this.$set(this.denoms, x.denom, denom)
|
this.$set(this.denoms, x.denom, denom)
|
||||||
|
const symbol = formatTokenDenom(denom)
|
||||||
|
if (!this.quotes[symbol] && symbol.indexOf('/') === -1) {
|
||||||
|
chainAPI.fetchTokenQuote(symbol).then(quote => {
|
||||||
|
this.$set(this.quotes, symbol, quote)
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
} else {
|
||||||
const symbol = formatTokenDenom(x.denom)
|
const symbol = formatTokenDenom(x.denom)
|
||||||
if (!this.quotes[symbol]) {
|
if (!this.quotes[symbol] && symbol.indexOf('/') === -1) {
|
||||||
chainAPI.fetchTokenQuote(symbol).then(quote => {
|
chainAPI.fetchTokenQuote(symbol).then(quote => {
|
||||||
this.$set(this.quotes, symbol, quote)
|
this.$set(this.quotes, symbol, quote)
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user