Skip to content

Commit

Permalink
ISSD-660 Fix The MDF Activity Date validation rule must accept 1 day …
Browse files Browse the repository at this point in the history
…events

Co-authored-by: elvinho <[email protected]>
  • Loading branch information
2 people authored and brianchandotcom committed Oct 26, 2023
1 parent 5d4ce1f commit 259e930
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const activitiesSchema = object({
'The end date cannot be before start date',
(endDate, testContext) => {
if (endDate && testContext.parent.startDate) {
return testContext.parent.startDate < endDate;
return testContext.parent.startDate <= endDate;
}

return false;
Expand Down

0 comments on commit 259e930

Please sign in to comment.