RegistrationForm: Refresh Captcha on registration fail

This commit is contained in:
Alex Gleason
2020-05-29 15:06:14 -05:00
parent 78732d8d43
commit c932872727

View File

@ -48,6 +48,7 @@ class RegistrationForm extends ImmutablePureComponent {
this.setState({ submissionLoading: true });
this.props.dispatch(register(this.state.params.toJS())).catch(error => {
this.setState({ submissionLoading: false });
this.refreshCaptcha();
});
}