diff --git a/src/components/Account/SignUp/SignUp.component.js b/src/components/Account/SignUp/SignUp.component.js index dbbe28832..002324a9f 100644 --- a/src/components/Account/SignUp/SignUp.component.js +++ b/src/components/Account/SignUp/SignUp.component.js @@ -52,7 +52,16 @@ export class SignUp extends Component { signUp(formValues) .then(signUpStatus => this.setState({ signUpStatus })) - .catch(signUpStatus => this.setState({ signUpStatus })) + .catch(error => { + const responseMessage = error?.response?.data?.message; + const message = responseMessage + ? responseMessage + : this.props.intl.formatMessage(messages.noConnection); + + this.setState({ + signUpStatus: { success: false, message: message } + }); + }) .finally(() => this.setState({ isSigningUp: false })); };