Skip to content

Commit 4a93f18

Browse files
hotfix(wallet): include ledger profiles in balance finder (#5239)
* hotfix(wallet): include ledger profiles in balance finder * chore: remove debris
1 parent 45cf050 commit 4a93f18

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/wallet/src/ui/app/pages/accounts/manage/accounts-finder/AccountsFinderView.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { useNavigate, useParams } from 'react-router-dom';
2424
import { parseDerivationPath } from '_src/background/account-sources/bip44Path';
2525
import { isMnemonicSerializedUiAccount } from '_src/background/accounts/mnemonicAccount';
2626
import { isSeedSerializedUiAccount } from '_src/background/accounts/seedAccount';
27+
import { isLedgerAccountSerializedUI } from '_src/background/accounts/ledgerAccount';
2728

2829
function getAccountSourceType(
2930
accountSource?: AccountSourceSerializedUI,
@@ -124,7 +125,11 @@ export function AccountsFinderView(): JSX.Element {
124125
): Record<number, SerializedUIAccount[]> {
125126
const groupedAccounts: Record<number, SerializedUIAccount[]> = {};
126127
accounts.forEach((account) => {
127-
if (isMnemonicSerializedUiAccount(account) || isSeedSerializedUiAccount(account)) {
128+
if (
129+
isMnemonicSerializedUiAccount(account) ||
130+
isSeedSerializedUiAccount(account) ||
131+
isLedgerAccountSerializedUI(account)
132+
) {
128133
const { accountIndex } = parseDerivationPath(account.derivationPath);
129134
if (!groupedAccounts[accountIndex]) {
130135
groupedAccounts[accountIndex] = [];

0 commit comments

Comments
 (0)