Clear import error state on logout.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent f9fc6cec3b
commit 0ed1add110
  1. 4
      ui/app/accounts/import/private-key.js
  2. 1
      ui/app/components/account-menu/index.js

@ -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…
Cancel
Save