Skip to content

Commit

Permalink
Removes redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
gudjong committed Jul 2, 2024
1 parent b954790 commit 1a09eda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const useCourtArrangements = (
if (date && valid) {
const courtDateHasChanged = Boolean(
original?.[1]?.date &&
compareAsc(date, new Date(original?.[1].date)) !== 0 &&
compareAsc(date, new Date(original[1].date)) !== 0 &&
hasSentNotification(
NotificationType.COURT_DATE,
workingCase.notifications,
Expand Down

0 comments on commit 1a09eda

Please sign in to comment.