Skip to content

Conversation

@jmgasper
Copy link
Collaborator

…ndar

@jmgasper jmgasper requested a review from kkartunov as a code owner January 29, 2026 04:07
const isSelected = selectedDates.has(dateKey)
const statusClass = styles[getStatusColor(status)]
const statusClass = styles[getStatusColor(displayStatus)]
const isDisabled = isLoading || isWeekendDate

Choose a reason for hiding this comment

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

[⚠️ correctness]
Disabling the button for weekends (isWeekendDate) might not be the intended behavior if users should be able to select weekends for certain actions. Verify if this logic aligns with the application's requirements.

return fullName
}

if (user.status === LeaveStatus.WIPRO_HOLIDAY || user.userId === 'wipro-holiday') {

Choose a reason for hiding this comment

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

[⚠️ maintainability]
The condition user.userId === 'wipro-holiday' seems to be a hardcoded check for a specific user ID. Consider using a more flexible approach, such as a configuration or a constant, to avoid potential issues if the ID changes in the future.

@jmgasper jmgasper merged commit 877e5da into master Jan 29, 2026
10 checks passed
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