diff --git a/packages/validators/src/settings.ts b/packages/validators/src/settings.ts index 446d3262..12b265ee 100644 --- a/packages/validators/src/settings.ts +++ b/packages/validators/src/settings.ts @@ -21,9 +21,7 @@ const SharedDuration = z message: issue.code === "invalid_type" ? startTimeError - : issue.code === "required_error" - ? startTimeError - : defaultError, + : defaultError, }), }), endTime: z.date({ @@ -31,9 +29,7 @@ const SharedDuration = z message: issue.code === "invalid_type" ? endTimeError - : issue.code === "required_error" - ? endTimeError - : defaultError, + : defaultError, }), }), })