Skip to content

Commit

Permalink
Linted code and updated null check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
danetsao committed Sep 21, 2023
1 parent ed547fa commit 3e9e687
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/forms/CalendarForm/validation/validateExceptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,12 @@ export function validateExceptionInterOverlaps(
rows.map((row) => ({
i: row.i,
startDate: dayjs
.min(
row.rows
.map(({ startDate }) => dayjs(startDate))
.filter((date) => date.isValid())
)
.min(row.rows.map(({ startDate }) => dayjs(startDate))
.filter((date) => date !== null))

Check failure on line 253 in src/forms/CalendarForm/validation/validateExceptions.tsx

View workflow job for this annotation

GitHub Actions / github-actions-ci

Expected indentation of 10 spaces but found 8

Check failure on line 253 in src/forms/CalendarForm/validation/validateExceptions.tsx

View workflow job for this annotation

GitHub Actions / github-actions-ci

Expected indentation of 10 spaces but found 8
.startOf('day'),
endDate: dayjs
.max(
row.rows.map(({ endDate }) => dayjs(endDate))
.filter((date) => date.isValid())
)
.max(row.rows.map(({ endDate }) => dayjs(endDate))
.filter((date) => date !== null))

Check failure on line 257 in src/forms/CalendarForm/validation/validateExceptions.tsx

View workflow job for this annotation

GitHub Actions / github-actions-ci

Expected indentation of 10 spaces but found 8

Check failure on line 257 in src/forms/CalendarForm/validation/validateExceptions.tsx

View workflow job for this annotation

GitHub Actions / github-actions-ci

Expected indentation of 10 spaces but found 8
.endOf('day')
}));

Expand Down

0 comments on commit 3e9e687

Please sign in to comment.