Skip to content

Commit

Permalink
Removed
Browse files Browse the repository at this point in the history
  • Loading branch information
renoseHarsh committed Aug 10, 2024
1 parent ff9c847 commit e527205
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/Components/Notifications/NotificationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e527205

Please sign in to comment.