kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
RegistrationForm: Refresh Captcha on registration fail
rodzic
78732d8d43
commit
c932872727
|
@ -48,6 +48,7 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
this.setState({ submissionLoading: true });
|
this.setState({ submissionLoading: true });
|
||||||
this.props.dispatch(register(this.state.params.toJS())).catch(error => {
|
this.props.dispatch(register(this.state.params.toJS())).catch(error => {
|
||||||
this.setState({ submissionLoading: false });
|
this.setState({ submissionLoading: false });
|
||||||
|
this.refreshCaptcha();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue