Skip to content

Commit

Permalink
fix: account balance key should not use deviceAccountIndex, as they a…
Browse files Browse the repository at this point in the history
…re not unique across ledger devices (#712)
  • Loading branch information
teebszet authored Oct 24, 2024
1 parent 1fecac5 commit 8e55f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const validateAccountName = (

export const getAccountBalanceKey = (account: Account | null) => {
if (!account) return '';
return `${account.accountType}-${account.deviceAccountIndex || account.id}`;
return `${account.accountType}-${account.id}`;
};

export const calculateTotalBalance = ({
Expand Down

0 comments on commit 8e55f9c

Please sign in to comment.