Skip to content

Commit 259e930

Browse files
Caio SouzaElvinho
authored andcommitted
ISSD-660 Fix The MDF Activity Date validation rule must accept 1 day events
Co-authored-by: elvinho <[email protected]>
1 parent 5d4ce1f commit 259e930

File tree

1 file changed

+1
-1
lines changed
  • workspaces/liferay-partner-workspace/client-extensions/liferay-partner-custom-element/src/routes/MDFRequestForm/steps/Activities/schema

1 file changed

+1
-1
lines changed

workspaces/liferay-partner-workspace/client-extensions/liferay-partner-custom-element/src/routes/MDFRequestForm/steps/Activities/schema/yup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const activitiesSchema = object({
101101
'The end date cannot be before start date',
102102
(endDate, testContext) => {
103103
if (endDate && testContext.parent.startDate) {
104-
return testContext.parent.startDate < endDate;
104+
return testContext.parent.startDate <= endDate;
105105
}
106106

107107
return false;

0 commit comments

Comments
 (0)