From 32384e49f3707e28504e35019b96f3a1e29c1237 Mon Sep 17 00:00:00 2001 From: Vitaliy Sulimenko Date: Wed, 14 Feb 2024 18:20:49 +0100 Subject: [PATCH] Fix piecharts --- src/components/account/Charts.vue | 6 ++++-- src/components/account/charts/ChartAssets.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/account/Charts.vue b/src/components/account/Charts.vue index 8c1427e..fa64d7f 100644 --- a/src/components/account/Charts.vue +++ b/src/components/account/Charts.vue @@ -265,10 +265,10 @@ network.total.rewards += amount // Calc tokens rewards price - network.totalRewardsPrice += amountCurrentDenom * el.price + network.totalRewardsPrice += amount * el.price // Calc tokens price - network.totalTokensPrice += amountCurrentDenom * el.price + network.totalTokensPrice += amount * el.price // Group by denom if (store.prices.find(e => e.symbol == el.symbol)) { @@ -347,6 +347,8 @@ } } + console.log(store.account) + // Hide loader loading.value = false } diff --git a/src/components/account/charts/ChartAssets.vue b/src/components/account/charts/ChartAssets.vue index e9d95eb..db209f4 100644 --- a/src/components/account/charts/ChartAssets.vue +++ b/src/components/account/charts/ChartAssets.vue @@ -63,7 +63,7 @@