Skip to content

Commit

Permalink
More nullish errors??
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash authored Sep 21, 2023
1 parent 03bd191 commit 5e8dd66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forms/CalendarForm/validation/validateExceptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ export function validateExceptionInterOverlaps(
i: row.i,
startDate: dayjs
.min(row.rows.map(({ startDate }) => dayjs(startDate)))
?.startOf('day'),
?.startOf('day') ?? dayjs(0),
endDate: dayjs
.max(row.rows.map(({ endDate }) => dayjs(endDate)))
?.endOf('day')
?.endOf('day') ?? dayjs(0)
}));

for (let i = 0; i < rowMinMaxes.length - 1; i++) {
Expand Down

0 comments on commit 5e8dd66

Please sign in to comment.