diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c0a15e9..27edf1f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -65,8 +65,7 @@ export default async function RootLayout({ const pathname = h.get("x-current-path"); if (session) { - console.log(session) - if (!session.user?.emailVerified) { + if (!session.user.emailVerified) { if (!pathname!.includes("/auth")) { redirect("/auth/verify"); }