@@ -14,6 +14,12 @@ import { InnerLabel, InnerLabelDropdown } from 'components/old/Base';
14import { LEDGER_LIVE_PATH, LEDGER_LEGACY_PATH } from 'lib/ledger';
14import { LEDGER_LIVE_PATH, LEDGER_LEGACY_PATH } from 'lib/ledger';
15import { useWallet } from 'store/wallet';
15import { useWallet } from 'store/wallet';
18+ { title: 'Ledger Live', value: LEDGER_LIVE_PATH },
19+ { title: 'Ledger Legacy', value: LEDGER_LEGACY_PATH },
20+ { title: 'Custom path', value: 'custom' },
17const chopHdPrefix = str => (str.slice(0, 2) === 'm/' ? str.slice(2) : str);
23const chopHdPrefix = str => (str.slice(0, 2) === 'm/' ? str.slice(2) : str);
19const addHdPrefix = str => (str.slice(0, 2) === 'm/' ? str : 'm/' + str);
25const addHdPrefix = str => (str.slice(0, 2) === 'm/' ? str : 'm/' + str);
@@ -61,11 +67,6 @@ export default function Ledger({ loginCompleted }) {
64− const pathOptions = [
65− { title: 'Ledger Live', value: LEDGER_LIVE_PATH },
66− { title: 'Ledger Legacy', value: LEDGER_LEGACY_PATH },
67− { title: 'Custom path', value: 'custom' },
69 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
70 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
71 const accountOptions = times(20, i => ({
72 const accountOptions = times(20, i => ({