From 810fd0dcd2599de966393716d573dd7500eaae37 Mon Sep 17 00:00:00 2001 From: Shivam Kumar <67449261+shiv-2810@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:51:42 +0530 Subject: [PATCH 1/2] Login button showing after successfull login bug -> FIXED --- app/(marketing)/layout.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index 902099c..8efb347 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -5,6 +5,7 @@ import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" import { MainNav } from "@/components/main-nav" import { SiteFooter } from "@/components/site-footer" +import { getCurrentUser } from "@/lib/session" interface MarketingLayoutProps { children: React.ReactNode @@ -13,12 +14,13 @@ interface MarketingLayoutProps { export default async function MarketingLayout({ children, }: MarketingLayoutProps) { + const user = await getCurrentUser(); return (