aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-22 08:58:48 +0800
committerkumavis <aaron@kumavis.me>2018-05-22 08:58:48 +0800
commit0b84ceae6831638ea98584a7262287a2d6ec1a8e (patch)
tree3283eab5f4bd9d824b587929483603a25423cd86
parent5d8dd1df0e6ab603aed66a94c0f62ae36273e79c (diff)
downloadtangerine-wallet-browser-0b84ceae6831638ea98584a7262287a2d6ec1a8e.tar.gz
tangerine-wallet-browser-0b84ceae6831638ea98584a7262287a2d6ec1a8e.tar.zst
tangerine-wallet-browser-0b84ceae6831638ea98584a7262287a2d6ec1a8e.zip
old-ui - app - use state.metamask.selectedAddress instead of currentView.context
-rw-r--r--old-ui/app/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js
index 2378a1a0a..abeb4f3f9 100644
--- a/old-ui/app/app.js
+++ b/old-ui/app/app.js
@@ -62,7 +62,7 @@ function mapStateToProps (state) {
isInitialized: state.metamask.isInitialized,
isUnlocked: state.metamask.isUnlocked,
currentView: state.appState.currentView,
- activeAddress: state.appState.activeAddress,
+ selectedAddress: state.metamask.selectedAddress,
transForward: state.appState.transForward,
isMascara: state.metamask.isMascara,
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized),
@@ -197,7 +197,7 @@ App.prototype.renderAppBar = function () {
style: {},
enableAccountsSelector: true,
identities: this.props.identities,
- selected: this.props.currentView.context,
+ selected: this.props.selectedAddress,
network: this.props.network,
keyrings: this.props.keyrings,
}, []),
@@ -588,7 +588,7 @@ App.prototype.renderPrimary = function () {
},
}, [
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer.color-orange', {
- onClick: () => props.dispatch(actions.backToAccountDetail(props.activeAddress)),
+ onClick: () => props.dispatch(actions.backToAccountDetail(props.selectedAddress)),
style: {
marginLeft: '10px',
marginTop: '50px',