From bed03ad949da9ffa85c5862b4204e6575f2b21c2 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Fri, 27 Mar 2026 11:56:18 +0530 Subject: [PATCH] fix --- src/components/layout/CommonHeader.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/layout/CommonHeader.tsx b/src/components/layout/CommonHeader.tsx index 9e2b532..147d879 100644 --- a/src/components/layout/CommonHeader.tsx +++ b/src/components/layout/CommonHeader.tsx @@ -13,7 +13,7 @@ const navLinks = [ ]; export function CommonHeader() { - const { data: session } = useSession(); + const { data: session, status } = useSession(); const { profileImage, profileName, avatarLoaded, setAvatarLoaded, notificationCount } = useHeaderData(); const [showProfileMenu, setShowProfileMenu] = useState(false); const [showGuestMenu, setShowGuestMenu] = useState(false); @@ -85,7 +85,9 @@ export function CommonHeader() { {/* Right Side Icons */}
- {session ? ( + {status === 'loading' ? ( +
+ ) : session ? ( <> {/* Notification Bell */}