From 1c2ddca9d47b395cca17eeec1296edcede87a22a Mon Sep 17 00:00:00 2001 From: Rafiafrzl Date: Mon, 1 Dec 2025 10:51:11 +0700 Subject: [PATCH] fix: update isReadFilter --- src/pages/notification/component/ListNotification.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/notification/component/ListNotification.jsx b/src/pages/notification/component/ListNotification.jsx index 30e3623..2e5ef42 100644 --- a/src/pages/notification/component/ListNotification.jsx +++ b/src/pages/notification/component/ListNotification.jsx @@ -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]);