forked from cerc-io/cosmos-explorer
only show native tokens
This commit is contained in:
parent
53b513fae1
commit
95ed60189d
@ -303,7 +303,7 @@ export default {
|
||||
methods: {
|
||||
formatToken(tokens) {
|
||||
if (Array.isArray(tokens)) {
|
||||
let nativeToken = tokens.filter(x => !x.denom.toUpperCase().startsWith('IBC/'))
|
||||
let nativeToken = tokens.filter(x => x.denom.length < 11)
|
||||
if (tokens.length > 1) {
|
||||
const sum = {}
|
||||
const reduce = nativeToken.reduce((b, a) => {
|
||||
|
@ -83,7 +83,7 @@
|
||||
</div>
|
||||
</b-col>
|
||||
<b-col md="8">
|
||||
<b-card-header class="d-flex justify-content-between">
|
||||
<b-card-header class="d-flex justify-content-between px-0">
|
||||
<!-- size -->
|
||||
<b-button-group
|
||||
size="sm"
|
||||
@ -126,7 +126,7 @@
|
||||
</b-button-group>
|
||||
</b-card-header>
|
||||
|
||||
<b-card-body class="pb-0">
|
||||
<b-card-body class="p-0">
|
||||
<!-- apex chart -->
|
||||
<vue-apex-charts
|
||||
type="line"
|
||||
@ -141,8 +141,7 @@
|
||||
<div v-if="coinInfo.description && coinInfo.description.en">
|
||||
{{ coinInfo.description.en || '' }}
|
||||
</div>
|
||||
<div class="my-1">
|
||||
LINKS:
|
||||
<div class="mt-1">
|
||||
<b-button
|
||||
:href="homepage"
|
||||
class="mr-1"
|
||||
@ -357,6 +356,8 @@ export default {
|
||||
created() {
|
||||
this.$http.getMarketChart(this.days).then(res => {
|
||||
this.marketData = res
|
||||
}).catch(() => {
|
||||
this.marketData = null
|
||||
})
|
||||
this.$http.getCoinInfo().then(res => {
|
||||
if (res) {
|
||||
|
Loading…
Reference in New Issue
Block a user