From 7c5ecef103b2ece823f3989db4bd74e8ac3e497d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 13 Mar 2024 18:46:29 +0200 Subject: [PATCH] Fix dashboard data calculation --- src/components/table/balancesTable/utils/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/table/balancesTable/utils/index.tsx b/src/components/table/balancesTable/utils/index.tsx index 8bc6234..5f96d5a 100644 --- a/src/components/table/balancesTable/utils/index.tsx +++ b/src/components/table/balancesTable/utils/index.tsx @@ -164,13 +164,13 @@ const getFreeAndLockedBalanceFromChildren = ( children?.forEach((childrenInfo) => { switch (childrenInfo.key) { - case 'reserved': - case 'locked': + case 'detailed-balances-reserved': + case 'detailed-balances-locked': lockedBalance = lockedBalance.plus( childrenInfo?.totalValue || BIGNUMBER_ZERO ) break - case 'frozen': + case 'detailed-balances-frozen': break default: freeBalance = freeBalance.plus(