diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-06 08:59:31 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-06 08:59:31 +0800 |
commit | 6b2511f94f436a30c6c683f9da2c3142d9a6461c (patch) | |
tree | ecab7998e618d28b20a96e4b7a47f8217fd1c92d /app/scripts | |
parent | 6c2730f24300449010bd3552d4d746bcb5dd176a (diff) | |
download | tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar.gz tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar.bz2 tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar.lz tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar.xz tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.tar.zst tangerine-wallet-browser-6b2511f94f436a30c6c683f9da2c3142d9a6461c.zip |
UI refactor
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/metamask-controller.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 962611758..1246629be 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -534,8 +534,10 @@ module.exports = class MetamaskController extends EventEmitter { if (!keyring) { keyring = await this.keyringController.addNewKeyring('Trezor Hardware') } - - const accounts = page === 1 ? await keyring.getNextPage() : await keyring.getPreviousPage() + if (page === 0) { + keyring.page = 0 + } + const accounts = page === -1 ? await keyring.getPreviousPage() : await keyring.getNextPage() this.accountTracker.syncWithAddresses(accounts.map(a => a.address)) return accounts |