From 203478ee2cc91c686292b5d54e5ddc6e45c77fad Mon Sep 17 00:00:00 2001 From: Vinuthna Date: Fri, 29 May 2026 21:11:54 +0530 Subject: [PATCH] Change signup success condition to response status --- src/pages/Signup/Signup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Signup/Signup.tsx b/src/pages/Signup/Signup.tsx index 2ac51dcc..c5f38a69 100644 --- a/src/pages/Signup/Signup.tsx +++ b/src/pages/Signup/Signup.tsx @@ -89,7 +89,7 @@ const SignUp: React.FC = () => { setMessage(response.data.message); // Show success message from backend // Navigate to login page after successful signup - if (response.data.message === 'User created successfully') { + if (response.status === 201) { navigate("/login"); } } catch (error: any) {