Skip to content

Commit

Permalink
fix: correct accounts counter (#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmadek authored Dec 16, 2024
1 parent fa611de commit b74d7d8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ function getVaultChainsCounter(chains: Record<ChainId, Chain>, accounts: Account
}>(
(acc, account) => {
if (accountUtils.isBaseAccount(account)) {
const nonBaseAccounts = accounts.filter((acc) => !accountUtils.isBaseAccount(acc));

acc.baseId = account.id;
acc.root[account.id] = getChainCounter(chains);
acc.root[account.id].checked = accounts.length;
acc.root[account.id].total = accounts.length;
acc.root[account.id].checked = nonBaseAccounts.length;
acc.root[account.id].total = nonBaseAccounts.length;
} else {
acc.shards.push(account as ChainAccount | ShardAccount);
}
Expand Down

0 comments on commit b74d7d8

Please sign in to comment.