fix: streamline redirect logic for verified OTP response
This commit is contained in:
@@ -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 ">
|
||||||
|
|||||||
Reference in New Issue
Block a user