aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-30 15:59:17 +0800
committerkumavis <aaron@kumavis.me>2017-01-30 15:59:17 +0800
commit6480c2d8a612a966091aa69c8af5462274e8d04c (patch)
treec22617cf06bcae12dd2dcd6786fb13f743474315
parent13e20034698ae0477240e88eab9a3483e5daccd6 (diff)
downloadtangerine-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.js2
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
}