Unfreeze registration form after error
This commit is contained in:
parent
f6212cf81b
commit
44f196fa99
2 changed files with 4 additions and 1 deletions
|
@ -129,6 +129,7 @@ export function register(params) {
|
|||
return dispatch(fetchMe());
|
||||
}).catch(error => {
|
||||
dispatch({ type: AUTH_REGISTER_FAIL, error });
|
||||
throw error;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -44,7 +44,9 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
|
||||
onSubmit = e => {
|
||||
this.setState({ submissionLoading: true });
|
||||
this.props.dispatch(register(this.state.params.toJS()));
|
||||
this.props.dispatch(register(this.state.params.toJS())).catch(error => {
|
||||
this.setState({ submissionLoading: false });
|
||||
});
|
||||
}
|
||||
|
||||
onFetchCaptcha = captcha => {
|
||||
|
|
Loading…
Reference in a new issue