Commit 638fbad8 authored by zeroleak's avatar zeroleak
Browse files

clear login error on re-login

parent c8559dec
......@@ -23,13 +23,11 @@ class LoginPage extends Component<Props> {
}
onSubmit() {
const seedPassphrase = this.inputPassphrase.current.value
cliService.login(seedPassphrase).then(() => {
this.setState({
loginError: undefined
})
this.setState({
loginError: undefined
})
.catch(e => this.setState({
const seedPassphrase = this.inputPassphrase.current.value
cliService.login(seedPassphrase).catch(e => this.setState({
loginError: e.message
}))
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment