Skip to content

Commit

Permalink
fix: Fix default HD path from debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick1904 committed May 17, 2022
1 parent 9b2cdbb commit 2033667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export function CouldNotFindAccountModalWrapper({
const implicitAccountId = getImplicitAccountIdFromSeedPhrase(seedPhrase);
try {
await wallet.importZeroBalanceAccount(implicitAccountId, recoveryKeyPair);
dispatch(refreshAccount());
dispatch(redirectTo('/'));
dispatch(clearGlobalAlert());
} catch (e) {
dispatch(showCustomAlert({
success: false,
Expand Down Expand Up @@ -63,8 +60,6 @@ export function CouldNotFindAccountModalWrapper({
await setKeyMeta(ledgerPublicKey, { type: 'ledger' });
await setLedgerHdPath({ accountId: implicitAccountId, path: ledgerHdPath });
await wallet.importZeroBalanceAccount(implicitAccountId);
dispatch(refreshAccount());
dispatch(redirectTo('/'));
} else {
throw e;
}
Expand All @@ -89,6 +84,9 @@ export function CouldNotFindAccountModalWrapper({
} else {
await handleImportNonLedgerImplicitAccount();
}
dispatch(refreshAccount());
dispatch(redirectTo('/'));
dispatch(clearGlobalAlert());
}}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function SignInLedgerWrapper(props) {

const [accountId, setAccountId] = useState('');
const [loader, setLoader] = useState(false);
const [confirmedPath, setConfirmedPath] = useState(10);
const [confirmedPath, setConfirmedPath] = useState(1);
const [showCouldNotFindAccountModal, setShowCouldNotFindAccountModal] = useState(false);
const ledgerHdPath = `${LEDGER_HD_PATH_PREFIX}${confirmedPath}'`;

Expand Down

0 comments on commit 2033667

Please sign in to comment.