diff --git a/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.js b/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.js index 37a5350c6..02fe648f7 100644 --- a/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.js +++ b/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.js @@ -84,18 +84,15 @@ export function SignUpFormContentComponent(props) { axios({ method: 'post', url: `${process.env.REACT_APP_BASE_API_URL}/api/auth/users/`, - withCredentials: false, data: dataToSend, }) - .then((res) => console.log(res.data)) + .then() .catch((error) => { if (error.response.data.email) { - setError( - 'email', { - type: 'manual', - message: 'Вже зареєстрована пошта' - } - ); + setError('email', { + type: 'manual', + message: 'Вже зареєстрована пошта', + }); } }); };