diff --git a/queries/authentication.ts b/queries/authentication.ts index 255c102..18fc7d4 100644 --- a/queries/authentication.ts +++ b/queries/authentication.ts @@ -198,7 +198,7 @@ export async function VerifyRegistrationOTP( // redirect(`/auth/verify-otp?phone_number=${mobile}`); // } } - if (data.message !== "User created successfully.") { + if (data.message === "User created successfully.") { return { message: "Your account could not be verified. Please contact support.", status: "verify_error",