From 3900d679f991f15936c4659eed989a1aedc4585c Mon Sep 17 00:00:00 2001 From: Pratham Jagga Date: Sun, 21 Jan 2024 00:57:51 +0530 Subject: [PATCH] .. --- client/app_frontend/src/pages/auth/sign-up.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/app_frontend/src/pages/auth/sign-up.jsx b/client/app_frontend/src/pages/auth/sign-up.jsx index 0a03a47..27b0549 100644 --- a/client/app_frontend/src/pages/auth/sign-up.jsx +++ b/client/app_frontend/src/pages/auth/sign-up.jsx @@ -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`