mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
old-ui - app - use state.metamask.selectedAddress instead of currentView.context
This commit is contained in:
parent
5d8dd1df0e
commit
0b84ceae68
@ -62,7 +62,7 @@ function mapStateToProps (state) {
|
|||||||
isInitialized: state.metamask.isInitialized,
|
isInitialized: state.metamask.isInitialized,
|
||||||
isUnlocked: state.metamask.isUnlocked,
|
isUnlocked: state.metamask.isUnlocked,
|
||||||
currentView: state.appState.currentView,
|
currentView: state.appState.currentView,
|
||||||
activeAddress: state.appState.activeAddress,
|
selectedAddress: state.metamask.selectedAddress,
|
||||||
transForward: state.appState.transForward,
|
transForward: state.appState.transForward,
|
||||||
isMascara: state.metamask.isMascara,
|
isMascara: state.metamask.isMascara,
|
||||||
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized),
|
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized),
|
||||||
@ -197,7 +197,7 @@ App.prototype.renderAppBar = function () {
|
|||||||
style: {},
|
style: {},
|
||||||
enableAccountsSelector: true,
|
enableAccountsSelector: true,
|
||||||
identities: this.props.identities,
|
identities: this.props.identities,
|
||||||
selected: this.props.currentView.context,
|
selected: this.props.selectedAddress,
|
||||||
network: this.props.network,
|
network: this.props.network,
|
||||||
keyrings: this.props.keyrings,
|
keyrings: this.props.keyrings,
|
||||||
}, []),
|
}, []),
|
||||||
@ -588,7 +588,7 @@ App.prototype.renderPrimary = function () {
|
|||||||
},
|
},
|
||||||
}, [
|
}, [
|
||||||
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer.color-orange', {
|
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: {
|
style: {
|
||||||
marginLeft: '10px',
|
marginLeft: '10px',
|
||||||
marginTop: '50px',
|
marginTop: '50px',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user