Skip to content

Commit 472226b

Browse files
committed
fix: remove future date validation for end date in History component
1 parent a826125 commit 472226b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/Pages/History.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ export function History() {
4040
}
4141
}
4242

43-
if (endDate) {
44-
const end = dayjs(endDate);
45-
const now = dayjs();
46-
47-
if (end.isAfter(now)) {
48-
errors.endDate = "End date cannot be in the future.";
49-
}
50-
}
51-
5243
setValidation(errors);
5344
return !errors.startDate && !errors.endDate;
5445
}

0 commit comments

Comments
 (0)