From 40894e8b07926ac62389b2e120a105c435d17ee0 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 12 Jan 2024 01:36:41 +0000 Subject: [PATCH] Fix type error --- apps/web/components/eventtype/EventAvailabilityTab.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/components/eventtype/EventAvailabilityTab.tsx b/apps/web/components/eventtype/EventAvailabilityTab.tsx index 5a6fcab7e5..dc792d3d16 100644 --- a/apps/web/components/eventtype/EventAvailabilityTab.tsx +++ b/apps/web/components/eventtype/EventAvailabilityTab.tsx @@ -192,7 +192,11 @@ const useListScheduleOptions = ({ }); } - if (isChildrenManagedEventType && watchSchedule && !options.find((option) => option.id === watchSchedule)) { + if ( + isChildrenManagedEventType && + watchSchedule && + !options.find((option) => option.value === watchSchedule) + ) { options.push({ value: watchSchedule, label: eventType.scheduleName ?? t("default_schedule_name"),