79628656

Date: 2025-05-19 11:44:12
Score: 1
Natty:
Report link

The issue seems to be that the tileDisabled function is not correctly filtering out weekends (Saturdays and Sundays) and is allowing them to be displayed as enabled, even though they are not in the availableDates array. The current logic in tileDisabled only checks if a date is in sanitizedAvailableDates or if it's before the current date, but it doesn't explicitly account for weekends.

Try modifying the tileDisabled function to explicitly disable any date that is not in sanitizedAvailableDates. If you want to ensure weekends are not mistakenly enabled, you can add a check for weekends if needed, but the primary issue is that the tileDisabled logic isn't strict enough.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: S Man