diff --git a/src/components/TransactionsStatistics.vue b/src/components/TransactionsStatistics.vue index df0bb8787..8cdfbd05f 100644 --- a/src/components/TransactionsStatistics.vue +++ b/src/components/TransactionsStatistics.vue @@ -10,6 +10,9 @@
TRANSACTIONS IN LAST 24H
{{ formatNumber(last24hsTransactionsCount) }} + + {{ last24hsTransactionsTrend }} % +
@@ -24,11 +27,13 @@ const { fetchTotalTransactionsCount } = useBlockchainStatsStore() const { fetchLast24hsTransactionsCount } = useTransactionsStore() const { transactionsCount } = storeToRefs(useBlockchainStatsStore()) -const { last24hsTransactionsCount } = storeToRefs(useTransactionsStore()) +const { last24hsTransactionsCount, last24hsTransactionsTrend } = storeToRefs(useTransactionsStore()) await fetchTotalTransactionsCount() await fetchLast24hsTransactionsCount() +const chipVariant = computed(() => last24hsTransactionsTrend.value > 0 ? 'success' : 'error') +