diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-11-23 07:57:48 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-11-23 07:57:48 +0800 |
commit | 4b7b0a86d8e9688bd8a512342b99c76dc1810486 (patch) | |
tree | 7c399cc3234f41e8594170c44bb1fe9dd5b29cd2 /app | |
parent | 7562d49db714f9b2e2a7a67718b5cfb1d4fae367 (diff) | |
download | tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar.gz tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar.bz2 tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar.lz tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar.xz tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.tar.zst tangerine-wallet-browser-4b7b0a86d8e9688bd8a512342b99c76dc1810486.zip |
Refine isInitialized derivation method
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/keyring-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index b24c4bac5..c736fa1f6 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -55,7 +55,7 @@ module.exports = class KeyringController extends EventEmitter { return { seedWords: this.configManager.getSeedWords(), isInitialized: (!!wallet || !!vault), - isUnlocked: this.keyrings.length > 0, + isUnlocked: Boolean(this.password), isDisclaimerConfirmed: this.configManager.getConfirmedDisclaimer(), // AUDIT this.configManager.getConfirmedDisclaimer(), unconfTxs: this.configManager.unconfirmedTxs(), transactions: this.configManager.getTxList(), |