mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Clear import error state on logout.
This commit is contained in:
parent
f9fc6cec3b
commit
0ed1add110
@ -17,6 +17,10 @@ function PrivateKeyImportView () {
|
||||
Component.call(this)
|
||||
}
|
||||
|
||||
PrivateKeyImportView.prototype.componentWillUnmount = function () {
|
||||
this.props.dispatch(actions.displayWarning(null))
|
||||
}
|
||||
|
||||
PrivateKeyImportView.prototype.render = function () {
|
||||
const { error } = this.props
|
||||
|
||||
|
@ -32,6 +32,7 @@ function mapDispatchToProps (dispatch) {
|
||||
},
|
||||
lockMetamask: () => {
|
||||
dispatch(actions.lockMetamask())
|
||||
dispatch(actions.displayWarning(null))
|
||||
dispatch(actions.toggleAccountMenu())
|
||||
},
|
||||
showConfigPage: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user