@@ -1,5 +1,6 @@
1import * as bip32 from 'bip32';
1import * as bip32 from 'bip32';
2import React, { useState } from 'react';
2import React, { useState } from 'react';
3+import { times } from 'lodash';
3import Maybe from 'folktale/maybe';
4import Maybe from 'folktale/maybe';
4import Transport from '@ledgerhq/hw-transport-u2f';
5import Transport from '@ledgerhq/hw-transport-u2f';
5import Eth from '@ledgerhq/hw-app-eth';
6import Eth from '@ledgerhq/hw-app-eth';
@@ -67,13 +68,10 @@ export default function Ledger({ loginCompleted }) {
68 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
69 const basePathTitle = pathOptions.find(o => o.value === basePath).title;
70− let accountOptions = [];
71+ const accountOptions = times(20, i => ({
71− for (let i = 0; i < 20; i++) {
72− accountOptions.push({
73− title: 'Account #' + (i + 1),
72+ title: `Account #${i + 1}`,
74− value: i,
73+ value: i,
77 const accountTitle = accountOptions.find(o => o.value === account).title;
75 const accountTitle = accountOptions.find(o => o.value === account).title;
79 const basePathSelection = (
77 const basePathSelection = (