From a9eef8b34699bfcf53b6e8a81f7fbd18892de903 Mon Sep 17 00:00:00 2001 From: Ezra Khairan Permana Date: Sun, 16 Jun 2024 07:41:09 +0700 Subject: [PATCH] fix: typing 2 --- packages/validators/src/settings.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, }), }), })