From 95ed60189d04be4bfc1011e3c2af8a9da9116a1f Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 25 Aug 2022 08:50:25 +0800 Subject: [PATCH] only show native tokens --- src/views/Dashboard.vue | 2 +- src/views/components/dashboard/DashboardPriceChart2.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 2aba349f..9e6a017f 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -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) => { diff --git a/src/views/components/dashboard/DashboardPriceChart2.vue b/src/views/components/dashboard/DashboardPriceChart2.vue index 40fce8b9..d8a5ed70 100644 --- a/src/views/components/dashboard/DashboardPriceChart2.vue +++ b/src/views/components/dashboard/DashboardPriceChart2.vue @@ -83,7 +83,7 @@ - + - + {{ coinInfo.description.en || '' }} -
- LINKS: +
{ this.marketData = res + }).catch(() => { + this.marketData = null }) this.$http.getCoinInfo().then(res => { if (res) {