1
0
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:
Dan 2017-10-26 14:45:05 -02:30 committed by Chi Kei Chan
parent f9fc6cec3b
commit 0ed1add110
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -32,6 +32,7 @@ function mapDispatchToProps (dispatch) {
},
lockMetamask: () => {
dispatch(actions.lockMetamask())
dispatch(actions.displayWarning(null))
dispatch(actions.toggleAccountMenu())
},
showConfigPage: () => {