Skip to content

Commit

Permalink
Full fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mastafit committed Aug 26, 2024
1 parent ed70f00 commit 503245b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ui/AccessCodeForm/AccessCodeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ function Content({
}

const start = startDate.toISO()
if (start == null || start === undefined) {
if (start === null || start === undefined) {
throw new Error(`Invalid start date: ${startDate.invalidReason}`)
}

const end = endDate.toISO()
if (end == null) {
if (end === null || end === undefined) {
throw new Error(`Invalid end date: ${endDate.invalidReason}`)
}

Expand Down

0 comments on commit 503245b

Please sign in to comment.