diff --git a/old-ui/app/components/connect-hardware/account-list.js b/old-ui/app/components/connect-hardware/account-list.js index 59d53ef45..10cfbf038 100644 --- a/old-ui/app/components/connect-hardware/account-list.js +++ b/old-ui/app/components/connect-hardware/account-list.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import ethNetProps from 'eth-net-props' import { default as Select } from 'react-select' import Button from '../../../../ui/app/components/button' +import { capitalizeFirstLetter } from '../../../../app/scripts/lib/util' class AccountList extends Component { constructor (props, context) { @@ -59,16 +60,12 @@ class AccountList extends Component { ) } - capitalizeDevice = (device) => { - return device.slice(0, 1).toUpperCase() + device.slice(1) - } - renderHeader = () => { const { device } = this.props return (

-

{`Unlock ${this.capitalizeDevice(device)}`}

+

{`Unlock ${capitalizeFirstLetter(device)}`}

{device.toLowerCase() === 'ledger' ? this.renderHdPathSelector() : null}

Select the account to view in Nifty Wallet