1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
This commit is contained in:
brunobar79 2018-07-03 15:46:15 -04:00
parent 3837c2ddd7
commit 9d3f2435e5
2 changed files with 3 additions and 3 deletions

View File

@ -532,10 +532,10 @@ module.exports = class MetamaskController extends EventEmitter {
'Trezor Hardware' 'Trezor Hardware'
)[0] )[0]
if (!keyring) { if (!keyring) {
keyring = await this.keyringController.addNewKeyring('Trezor Hardware') keyring = await this.keyringController.addNewKeyring('Trezor Hardware')
} }
const accounts = page === 1 ? await keyring.getNextPage() : await keyring.getPreviousPage() const accounts = page === 1 ? await keyring.getNextPage() : await keyring.getPreviousPage()
this.accountTracker.syncWithAddresses(accounts.map(a => a.address)) this.accountTracker.syncWithAddresses(accounts.map(a => a.address))
return accounts return accounts

View File

@ -12,7 +12,7 @@ const ConnectHardwareForm = require('./connect-hardware')
const { const {
NEW_ACCOUNT_ROUTE, NEW_ACCOUNT_ROUTE,
IMPORT_ACCOUNT_ROUTE, IMPORT_ACCOUNT_ROUTE,
CONNECT_HARDWARE_ROUTE, CONNECT_HARDWARE_ROUTE,
} = require('../../../routes') } = require('../../../routes')
class CreateAccountPage extends Component { class CreateAccountPage extends Component {