diff options
author | kumavis <aaron@kumavis.me> | 2017-01-30 15:59:17 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-01-30 15:59:17 +0800 |
commit | 6480c2d8a612a966091aa69c8af5462274e8d04c (patch) | |
tree | c22617cf06bcae12dd2dcd6786fb13f743474315 | |
parent | 13e20034698ae0477240e88eab9a3483e5daccd6 (diff) | |
download | tangerine-wallet-browser-6480c2d8a612a966091aa69c8af5462274e8d04c.tar.gz tangerine-wallet-browser-6480c2d8a612a966091aa69c8af5462274e8d04c.tar.zst tangerine-wallet-browser-6480c2d8a612a966091aa69c8af5462274e8d04c.zip |
public config - get selectedAccount from keyring controller substate
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index cf58d2477..422fda3d7 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -146,7 +146,7 @@ module.exports = class MetamaskController extends EventEmitter { function selectPublicState(state) { const result = { selectedAccount: undefined } try { - result.selectedAccount = state.config.selectedAccount + result.selectedAccount = state.KeyringController.selectedAccount } catch (_) {} return result } |