Skip to content

Commit

Permalink
#47 Correct history push to login page. Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 24, 2023
1 parent ec22ae3 commit eed2cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/auth/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SignUpForm = () => {
event.preventDefault();
try {
await axios.post("/dj-rest-auth/registration/", signUpData);
history.push("/signin");
history.push("/login");
} catch (err) {
setErrors(err.response?.data);
}
Expand Down

0 comments on commit eed2cb2

Please sign in to comment.