diff --git a/src/forms/CalendarForm/validation/validateExceptions.tsx b/src/forms/CalendarForm/validation/validateExceptions.tsx index 7a1e50f1..6aeec69e 100644 --- a/src/forms/CalendarForm/validation/validateExceptions.tsx +++ b/src/forms/CalendarForm/validation/validateExceptions.tsx @@ -252,7 +252,7 @@ export function validateExceptionInterOverlaps( .min(row.rows.map(({ startDate }) => dayjs(startDate))) ?.startOf('day'), endDate: dayjs - .maxrow.rows.map(({ endDate }) => dayjs(endDate))) + .max(row.rows.map(({ endDate }) => dayjs(endDate))) ?.endOf('day') }));