only show native tokens

This commit is contained in:
liangping 2022-08-25 08:50:25 +08:00
parent 53b513fae1
commit 95ed60189d
2 changed files with 6 additions and 5 deletions

View File

@ -303,7 +303,7 @@ export default {
methods: { methods: {
formatToken(tokens) { formatToken(tokens) {
if (Array.isArray(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) { if (tokens.length > 1) {
const sum = {} const sum = {}
const reduce = nativeToken.reduce((b, a) => { const reduce = nativeToken.reduce((b, a) => {

View File

@ -83,7 +83,7 @@
</div> </div>
</b-col> </b-col>
<b-col md="8"> <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 --> <!-- size -->
<b-button-group <b-button-group
size="sm" size="sm"
@ -126,7 +126,7 @@
</b-button-group> </b-button-group>
</b-card-header> </b-card-header>
<b-card-body class="pb-0"> <b-card-body class="p-0">
<!-- apex chart --> <!-- apex chart -->
<vue-apex-charts <vue-apex-charts
type="line" type="line"
@ -141,8 +141,7 @@
<div v-if="coinInfo.description && coinInfo.description.en"> <div v-if="coinInfo.description && coinInfo.description.en">
{{ coinInfo.description.en || '' }} {{ coinInfo.description.en || '' }}
</div> </div>
<div class="my-1"> <div class="mt-1">
LINKS:
<b-button <b-button
:href="homepage" :href="homepage"
class="mr-1" class="mr-1"
@ -357,6 +356,8 @@ export default {
created() { created() {
this.$http.getMarketChart(this.days).then(res => { this.$http.getMarketChart(this.days).then(res => {
this.marketData = res this.marketData = res
}).catch(() => {
this.marketData = null
}) })
this.$http.getCoinInfo().then(res => { this.$http.getCoinInfo().then(res => {
if (res) { if (res) {