Skip to content

Commit

Permalink
Merge pull request #153 from dappforce/fix/dashboard-calculation
Browse files Browse the repository at this point in the history
Fix dashboard data calculation
  • Loading branch information
olehmell authored Mar 13, 2024
2 parents ba08331 + 7c5ecef commit 1655f3c
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 1655f3c

Please sign in to comment.