1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update AccountModalContainer to accept a selectedIdentity prop

This commit is contained in:
Whymarrh Whitby 2018-08-16 14:58:58 -02:30
parent babd59a2dc
commit a90c152485

View File

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