Skip to content

Commit

Permalink
fix: anon for useGetAccountIds used for request.account
Browse files Browse the repository at this point in the history
  • Loading branch information
Justkant committed Dec 20, 2022
1 parent ea3a7c5 commit 54587ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/ledger-live-common/src/wallet-api/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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$]);
Expand Down

0 comments on commit 54587ae

Please sign in to comment.