@@ -5,7 +5,7 @@ import { Grid, CheckboxInput } from 'indigo-react';
55
66import { useWallet } from 'store/wallet';
77
8−import { walletFromMnemonic, WALLET_TYPES } from 'lib/wallet';
8+import { walletFromMnemonic, WALLET_TYPES, DEFAULT_HD_PATH } from 'lib/wallet';
99import useLoginView from 'lib/useLoginView';
1010import { MnemonicInput, HdPathInput, PassphraseInput } from 'form/Inputs';
1111import {
@@ -23,12 +23,7 @@ import SubmitButton from 'form/SubmitButton';
2323export default function Mnemonic({ className, goHome }) {
2424 useLoginView(WALLET_TYPES.MNEMONIC);
2525
26− const {
27− setWallet,
28− setAuthMnemonic,
29− walletHdPath,
30− setWalletHdPath,
31− } = useWallet();
26+ const { setWallet, setAuthMnemonic, setWalletHdPath } = useWallet();
3227
3328 const validate = useMemo(
3429 () =>
@@ -58,10 +53,7 @@ export default function Mnemonic({ className, goHome }) {
5853 [setAuthMnemonic, setWallet, setWalletHdPath]
5954 );
6055
61− const initialValues = useMemo(
62− () => ({ hdpath: walletHdPath, useAdvanced: false }),
63− [walletHdPath]
64− );
56+ const initialValues = { hdpath: DEFAULT_HD_PATH, useAdvanced: false };
6557
6658 return (
6759 <Grid className={cn('mt4', className)}>