diff --git a/src/Components/Notifications/NotificationsList.tsx b/src/Components/Notifications/NotificationsList.tsx index d5c66357812..2de3ae7922c 100644 --- a/src/Components/Notifications/NotificationsList.tsx +++ b/src/Components/Notifications/NotificationsList.tsx @@ -350,24 +350,7 @@ export default function NotificationsList({ }) .then((res) => { if (res && res.data) { - const toChangeId = [ - "PATIENT_CONSULTATION_UPDATE_CREATED", - "PATIENT_CONSULTATION_UPDATE_UPDATED", - ]; - const modifiedData = res.data.results.map((notification: any) => { - if (toChangeId.includes(notification.event)) { - return { - ...notification, - message: notification.message.replace( - "Consultation", - "Log Update", - ), - }; - } else { - return notification; - } - }); - setData(modifiedData); + setData(res.data.results); setUnreadCount( res.data.results?.reduce( (acc: number, result: any) => acc + (result.read_at ? 0 : 1),