|
|
|
@ -8,8 +8,6 @@ const ConnectScreen = require('./connect-screen') |
|
|
|
|
const AccountList = require('./account-list') |
|
|
|
|
const { DEFAULT_ROUTE } = require('../../../helpers/constants/routes') |
|
|
|
|
const { formatBalance } = require('../../../helpers/utils/util') |
|
|
|
|
const { getPlatform } = require('../../../../../app/scripts/lib/util') |
|
|
|
|
const { PLATFORM_FIREFOX } = require('../../../../../app/scripts/lib/enums') |
|
|
|
|
|
|
|
|
|
class ConnectHardwareForm extends Component { |
|
|
|
|
constructor (props) { |
|
|
|
@ -51,12 +49,6 @@ class ConnectHardwareForm extends Component { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
connectToHardwareWallet = (device) => { |
|
|
|
|
// Ledger hardware wallets are not supported on firefox
|
|
|
|
|
if (getPlatform() === PLATFORM_FIREFOX && device === 'ledger') { |
|
|
|
|
this.setState({ browserSupported: false, error: null}) |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.state.accounts.length) { |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|