Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shushunya committed Oct 8, 2023
1 parent 558b392 commit eee0eb4
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'Вже зареєстрована пошта',
});
}
});
};
Expand Down

0 comments on commit eee0eb4

Please sign in to comment.