lavoce #27

Merged
bragaz_rexita merged 42 commits from lavoce into main 2025-12-22 09:28:35 +00:00
Showing only changes of commit 1c2ddca9d4 - Show all commits

View File

@@ -202,7 +202,7 @@ const ListNotification = memo(function ListNotification(props) {
}));
// Fetch notifications with new pagination
const isReadFilter = activeTab === 'read' ? true : activeTab === 'unread' ? false : null;
const isReadFilter = activeTab === 'read' ? 1 : activeTab === 'unread' ? 0 : null;
fetchNotifications(page, pageSize, isReadFilter);
};
@@ -214,7 +214,7 @@ const ListNotification = memo(function ListNotification(props) {
}
// Fetch notifications on component mount and when tab changes
const isReadFilter = activeTab === 'read' ? true : activeTab === 'unread' ? false : null;
const isReadFilter = activeTab === 'read' ? 1 : activeTab === 'unread' ? 0 : null;
fetchNotifications(pagination.current_page, pagination.current_limit, isReadFilter);
}, [activeTab]);