Merge pull request #519 from akellbl4/fix/hide-error-in-email-form

Hide error after repeated request in email login form
This commit is contained in:
Umputun
2020-01-02 11:54:50 -06:00
committed by GitHub
@@ -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 });