Skip to content

Scheduling infrastructure for absolutely everyone.

Added validation for duration field in the event types (#8649)

Mahesh Bansode20f7a5841ee7
diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx
index c985e7a4a87..c3949449fc8 100644
--- a/apps/web/components/eventtype/EventSetupTab.tsx
+++ b/apps/web/components/eventtype/EventSetupTab.tsx
@@ -466,6 +466,7 @@ export const EventSetupTab = (
defaultValue={eventType.length ?? 15}
{...formMethods.register("length")}
addOnSuffix={<>{t("minutes")}</>}
+ min={1}
/>
)}
{!lengthLockedProps.disabled && (