From 3b1670079a3097c2893d29403283bea076d0db49 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Fri, 22 Sep 2023 15:26:34 -0400 Subject: [PATCH] Fix bad merge --- src/forms/CalendarForm/validation/validateExceptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]));