Fix error hiding after repeated request

This commit is contained in:
Pavel Mineev
2020-01-02 15:19:13 +03:00
parent 25782d7d3e
commit ff83b446b8
@@ -71,7 +71,7 @@ export class EmailLoginForm extends Component<Props, State> {
async onVerificationSubmit(e: Event) {
e.preventDefault();
this.setState({ loading: true });
this.setState({ loading: true, error: null });
try {
await this.props.sendEmailVerification(this.state.usernameValue, this.state.addressValue);
this.setState({ verificationSent: true });