diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index 47d2d448..c5e5f7e4 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -17,7 +17,7 @@ type PageProps = { }; export default async function SectionPage({ params }: PageProps) { - const sectionSlug = String(params?.section || ''); + const sectionSlug = String(await params?.section || ''); const iframeUrl = menuItems[sectionSlug as keyof typeof menuItems]; diff --git a/components/notification-badge.tsx b/components/notification-badge.tsx index d0ea63d9..4a62fed6 100644 --- a/components/notification-badge.tsx +++ b/components/notification-badge.tsx @@ -13,6 +13,8 @@ export const NotificationBadge = memo(function NotificationBadge({ className }: const { notificationCount } = useNotifications(); const hasUnread = notificationCount.unread > 0; + console.log('[NOTIFICATION_BADGE] Current notification count:', notificationCount); + return (