Skip to content

Commit

Permalink
2nd prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jessrey619 committed Nov 15, 2024
1 parent 6b6e906 commit c40620b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/pages/notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 83 in client/src/pages/notifications.tsx

View workflow job for this annotation

GitHub Actions / Build frontend

Unexpected string value in conditional. An explicit empty string check is required
? parsedData.LeaveType
: null,
overtimeId: parsedData.OvertimeId,
managerApproveStatus:
parsedData.ManagerApproveStatus === RequestStatus.APPROVED
Expand Down

0 comments on commit c40620b

Please sign in to comment.