Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamceq committed Jan 20, 2024
1 parent 4311f03 commit 3900d67
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/app_frontend/src/pages/auth/sign-up.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ export function SignUp() {
// console.log(json)

alert(response.status);
if (response.status == 200) {
const nav = useNavigate();
nav("/auth/sign-in");
}
alert("Signed up successfully now you can log in");
navigate("/auth/sign-in");

if (Number(response.status) == 200) {
alert(
`Great ${credentials.name}, You Register successfully`
Expand Down

0 comments on commit 3900d67

Please sign in to comment.