diff --git a/src/forms/CalendarForm/validation/validateExceptions.tsx b/src/forms/CalendarForm/validation/validateExceptions.tsx index 1463c76f..96f21571 100644 --- a/src/forms/CalendarForm/validation/validateExceptions.tsx +++ b/src/forms/CalendarForm/validation/validateExceptions.tsx @@ -80,7 +80,7 @@ export function validateExceptionOverlaps( ?.startOf('day') ?? dayjs(0), endDate: dayjs .max(row.rows.map(({ endDate }) => dayjs(endDate))) - .endOf('day'), + ?.endOf('day') ?? dayjs(0), })) .filter(({ i }) => isExceptionFilled(rows[i]));