aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-25 05:22:26 +0800
committerkumavis <aaron@kumavis.me>2017-01-25 05:22:26 +0800
commit01c88bb0bd522239c47d7045db39f3575ce460e4 (patch)
tree5309edd534b90f2bdb72cf6a44f84fedaf6bb4da /app/scripts
parent8049c1fc07c248d978ced12746e26e1b3f2eb003 (diff)
downloadtangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar.gz
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar.bz2
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar.lz
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar.xz
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.tar.zst
tangerine-wallet-browser-01c88bb0bd522239c47d7045db39f3575ce460e4.zip
keyring-controller - cleanup
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/keyring-controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 858ea19ee..5c75ca04a 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -422,9 +422,10 @@ module.exports = class KeyringController extends EventEmitter {
// puts the current seed words into the state tree.
createFirstKeyTree () {
this.clearKeyrings()
- return this.addNewKeyring('HD Key Tree', {numberOfAccounts: 1})
+ return this.addNewKeyring('HD Key Tree', { numberOfAccounts: 1 })
.then((keyring) => {
- const firstAccount = keyring.getAccounts()[0]
+ const accounts = keyring.getAccounts()
+ const firstAccount = accounts[0]
if (!firstAccount) throw new Error('KeyringController - No account found on keychain.')
const hexAccount = normalize(firstAccount)
this.configManager.setSelectedAccount(hexAccount)