From 02854b2fa3ad6d1da275dff2b62d2951243d9b8c Mon Sep 17 00:00:00 2001 From: Chris Veleris Date: Mon, 20 Oct 2025 12:16:12 +0300 Subject: [PATCH] Fix inbox sidebar counter --- frontend/components/Sidebar/SidebarNav.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/Sidebar/SidebarNav.tsx b/frontend/components/Sidebar/SidebarNav.tsx index 7b104c0..7bed1f2 100644 --- a/frontend/components/Sidebar/SidebarNav.tsx +++ b/frontend/components/Sidebar/SidebarNav.tsx @@ -23,8 +23,8 @@ const SidebarNav: React.FC = ({ const { t } = useTranslation(); const store = useStore(); - // Get inbox items count for badge - const inboxItemsCount = store.inboxStore.inboxItems.length; + // Get inbox items count for badge - use pagination.total for accurate count + const inboxItemsCount = store.inboxStore.pagination.total; // Load inbox items when component mounts to ensure badge shows correct count useEffect(() => {