aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-11 08:37:55 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-11 08:37:55 +0800
commit771f9ec124c758556ebba11067e66c9d4843455d (patch)
tree36a67ee08de1db069402e2be17a5630fd20c8ed2
parent88f4931c6f875be5186a0071e2cec5b78fb34b57 (diff)
downloadtangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar.gz
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar.bz2
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar.lz
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar.xz
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.tar.zst
tangerine-wallet-browser-771f9ec124c758556ebba11067e66c9d4843455d.zip
Fix logic for dropdown components attaching checkmark to correct account
-rw-r--r--ui/app/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 4565bdd37..60d36772a 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -43,6 +43,7 @@ function mapStateToProps (state) {
accounts,
address,
} = state.metamask
+ console.log("ADDRESS:", address)
const selected = address || Object.keys(accounts)[0]
return {
@@ -185,7 +186,7 @@ App.prototype.renderAppBar = function () {
style: {},
enableAccountsSelector: true,
identities: this.props.identities,
- selected: this.props.selected,
+ selected: this.props.currentView.context,
network: this.props.network,
}, []),