mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix logic for dropdown components attaching checkmark to correct account
This commit is contained in:
parent
88f4931c6f
commit
771f9ec124
@ -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,
|
||||
}, []),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user