fix: streamline redirect logic for verified OTP response
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m21s

This commit is contained in:
i701 2025-04-18 12:05:08 +05:00
parent 0b2dcfcc01
commit 322f526069
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -23,7 +23,7 @@ export default async function VerifyRegistrationOTP({
console.log("Error in checkIdOrPhone", error); console.log("Error in checkIdOrPhone", error);
return redirect("/auth/signin"); return redirect("/auth/signin");
} }
if (response.verified || !response.verified) redirect("/auth/signin"); if (response.verified) redirect("/auth/signin");
return ( return (
<div className="bg-gray-100 dark:bg-black w-full h-screen flex items-center justify-center font-sans"> <div className="bg-gray-100 dark:bg-black w-full h-screen flex items-center justify-center font-sans">
<div className="flex flex-col items-center justify-center w-full h-full "> <div className="flex flex-col items-center justify-center w-full h-full ">