diff --git a/client/src/pages/notifications.tsx b/client/src/pages/notifications.tsx index f33b2572..7e666050 100644 --- a/client/src/pages/notifications.tsx +++ b/client/src/pages/notifications.tsx @@ -79,7 +79,10 @@ const Notifications: NextPage = (): JSX.Element => { managerRemarks: parsedData.ManagerRemarks, startDate: parsedData.StartDate, endDate: parsedData.EndDate, - leaveType: notificationType === 'Leave' || 'leave_resolved' ? parsedData.LeaveType : null, + leaveType: + notificationType === NOTIFICATION_TYPE.LEAVE || NOTIFICATION_TYPE.LEAVE_RESOLVED + ? parsedData.LeaveType + : null, overtimeId: parsedData.OvertimeId, managerApproveStatus: parsedData.ManagerApproveStatus === RequestStatus.APPROVED