Skip to content

Conversation

@jmgasper
Copy link
Collaborator

Add users to set holidays in leave tracker

@jmgasper jmgasper requested a review from kkartunov as a code owner January 14, 2026 06:09
@jmgasper jmgasper merged commit 9d9153d into dev Jan 14, 2026
5 of 6 checks passed
</div>
))}
&& displayedUsers.map((user, userIndex) => {
const isHolidayStatus = user.status === LeaveStatus.WIPRO_HOLIDAY

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ maintainability]
Consider extracting the logic for determining isHolidayStatus into a separate function for better readability and maintainability. This will make it easier to update the logic in the future if more holiday statuses are added.

await updateLeaveDates(Array.from(selectedDates), LeaveStatus.HOLIDAY)
setSelectedDates(new Set())
await loadCurrentMonth()
} catch {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ maintainability]
Consider logging the error in the catch block to aid in debugging and monitoring. This will help in identifying the root cause of the failure when updateLeaveDates or loadCurrentMonth fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants