From 2d737aae7f80767a8a531822fcbc60fa9c97e260 Mon Sep 17 00:00:00 2001 From: ayeshoali Date: Tue, 20 Jun 2023 13:31:15 +0500 Subject: [PATCH] refactor: fixed data updation in redux --- src/Notifications/data/thunks.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Notifications/data/thunks.js b/src/Notifications/data/thunks.js index 5ee3894..f87e2e1 100644 --- a/src/Notifications/data/thunks.js +++ b/src/Notifications/data/thunks.js @@ -66,12 +66,7 @@ export const fetchAppsNotificationCount = () => ( dispatch(fetchNotificationsCountRequest()); const data = await getNotificationCounts(); const normalisedData = normalizeNotificationCounts((camelCaseObject(data))); - dispatch(fetchNotificationsCountSuccess({ - ...normalisedData, - countByAppName: data.countByAppName, - count: data.count, - showNotificationsTray: data.showNotificationsTray, - })); + dispatch(fetchNotificationsCountSuccess({ ...normalisedData })); } catch (error) { if (getHttpErrorStatus(error) === 403) { dispatch(fetchNotificationsCountDenied());