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 */}