Skip to content

Commit

Permalink
Fix dashboard data calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Mar 13, 2024
1 parent ba08331 commit 7c5ecef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/table/balancesTable/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7c5ecef

Please sign in to comment.