diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index c50b1ea1e6..611ce94471 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -139,8 +139,10 @@ const Calendar: React.FC = ({ return Array.isArray(holidays) ? holidays.filter((holiday) => { if (!holiday.date) { - console.warn(`Holiday "${holiday.name}" has no date specified.`); - return false; + console.warn( + `Holiday "${holiday.name}" has no date specified. Assigning a default date.`, + ); + holiday.date = new Date().toISOString(); } const holidayMonth = dayjs(holiday.date, 'MM-DD', true).month(); return holidayMonth === currentMonth;