From 8c4efe30b662c16da6392db9afce620dea318ff9 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Fri, 4 Nov 2022 10:27:48 +0800
Subject: [PATCH] improve display for no price token
---
.../components/dashboard/DashboardCardHorizontal.vue | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/components/dashboard/DashboardCardHorizontal.vue b/src/views/components/dashboard/DashboardCardHorizontal.vue
index a7f59c57..9046d9f1 100644
--- a/src/views/components/dashboard/DashboardCardHorizontal.vue
+++ b/src/views/components/dashboard/DashboardCardHorizontal.vue
@@ -6,13 +6,16 @@
{{ statistic || '-' }}
{{ statisticTitle }}
+
+ {{ showPrice(statistic, statisticTitle) }}
+
- {{ showPrice(statistic) }}
+ {{ showPrice(statistic, statisticTitle) }}
- {{ showPrice(statistic) }}
+ {{ showPrice(statistic, statisticTitle) }}
= 2) {
const quote = this.$store.state.chains.quotes[token[1]]
@@ -84,7 +87,7 @@ export default {
return `${getUserCurrencySign()}${(Number(token[0].replaceAll(',', '')) * price).toFixed(2)}`
}
}
- return token
+ return statisticTitle
},
},
}