mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Update hide-token-confirmation-modal.js to use new modalState schema (#4482)
* Update hide-token-confirmation-modal.js to use new modalState schema (added in 41e38fe55
).
* Fix modalState props
This commit is contained in:
parent
ddce3d148e
commit
3b6e96bac9
@ -9,7 +9,7 @@ const { getSelectedAccount } = require('../../selectors')
|
||||
function mapStateToProps (state) {
|
||||
return {
|
||||
selectedAccount: getSelectedAccount(state),
|
||||
identity: state.appState.modal.modalState.identity,
|
||||
identity: state.appState.modal.modalState.props.identity,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ const Identicon = require('../identicon')
|
||||
function mapStateToProps (state) {
|
||||
return {
|
||||
network: state.metamask.network,
|
||||
token: state.appState.modal.modalState.token,
|
||||
token: state.appState.modal.modalState.props.token,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ const AccountModalContainer = require('./account-modal-container')
|
||||
|
||||
function mapStateToProps (state) {
|
||||
return {
|
||||
Qr: state.appState.modal.modalState.Qr,
|
||||
Qr: state.appState.modal.modalState.props.Qr,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user