Unfreeze registration form after error
This commit is contained in:
parent
f6212cf81b
commit
44f196fa99
|
@ -129,6 +129,7 @@ export function register(params) {
|
||||||
return dispatch(fetchMe());
|
return dispatch(fetchMe());
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
dispatch({ type: AUTH_REGISTER_FAIL, error });
|
dispatch({ type: AUTH_REGISTER_FAIL, error });
|
||||||
|
throw error;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,9 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
|
|
||||||
onSubmit = e => {
|
onSubmit = e => {
|
||||||
this.setState({ submissionLoading: true });
|
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 => {
|
onFetchCaptcha = captcha => {
|
||||||
|
|
Loading…
Reference in New Issue