diff --git a/libs/ledger-live-common/src/wallet-api/react.ts b/libs/ledger-live-common/src/wallet-api/react.ts index 17b820747b2..69449d3ea5e 100644 --- a/libs/ledger-live-common/src/wallet-api/react.ts +++ b/libs/ledger-live-common/src/wallet-api/react.ts @@ -4,6 +4,7 @@ import { Observable } from "@ledgerhq/wallet-api-server"; import { accountToWalletAPIAccount, currencyToWalletAPICurrency, + getAccountIdFromWalletAccountId, } from "./converters"; import { isWalletAPISupportedCurrency } from "./helpers"; import { WalletAPICurrency, AppManifest, WalletAPIAccount } from "./types"; @@ -97,7 +98,7 @@ export function useGetAccountIds( } return accounts.reduce((accountIds, account) => { - accountIds.set(account.id, true); + accountIds.set(getAccountIdFromWalletAccountId(account.id), true); return accountIds; }, new Map()); }, [accounts, accounts$]);