Update AccountModalContainer to accept a selectedIdentity prop

feature/default_network_editable
Whymarrh Whitby 6 years ago
parent babd59a2dc
commit a90c152485
  1. 4
      ui/app/components/modals/account-modal-container.js

@ -7,9 +7,9 @@ const actions = require('../../actions')
const { getSelectedIdentity } = require('../../selectors') const { getSelectedIdentity } = require('../../selectors')
const Identicon = require('../identicon') const Identicon = require('../identicon')
function mapStateToProps (state) { function mapStateToProps (state, ownProps) {
return { return {
selectedIdentity: getSelectedIdentity(state), selectedIdentity: ownProps.selectedIdentity || getSelectedIdentity(state),
} }
} }

Loading…
Cancel
Save