From 54587ae8acc928954741a4b8927d24e9bf519919 Mon Sep 17 00:00:00 2001 From: Kant Date: Tue, 20 Dec 2022 20:08:59 +0100 Subject: [PATCH] fix: anon for useGetAccountIds used for request.account --- libs/ledger-live-common/src/wallet-api/react.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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$]);