From c040851f9f1539333dd253810624228f64ba8af3 Mon Sep 17 00:00:00 2001 From: Udit Takkar Date: Thu, 26 Oct 2023 01:29:39 +0530 Subject: [PATCH] chore: import type --- packages/features/form-builder/FormBuilderField.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/features/form-builder/FormBuilderField.tsx b/packages/features/form-builder/FormBuilderField.tsx index 2e8c0b80b8..bb50db265e 100644 --- a/packages/features/form-builder/FormBuilderField.tsx +++ b/packages/features/form-builder/FormBuilderField.tsx @@ -3,6 +3,7 @@ import type { TFunction } from "next-i18next"; import { Controller, useFormContext } from "react-hook-form"; import type { z } from "zod"; +import { DefaultEventLocationTypeEnum } from "@calcom/app-store/locations"; import { classNames } from "@calcom/lib"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Label } from "@calcom/ui"; @@ -313,14 +314,17 @@ export const ComponentForField = ({ } const moreThanOneInPersonOptions = !!( field.options.filter((field) => { - return field.value === "inPerson"; + return field.value === DefaultEventLocationTypeEnum.InPerson; }).length > 1 ); const options = field.options.map((field) => { return { ...field, - value: field.value === "inPerson" && moreThanOneInPersonOptions ? field.label : field.value, + value: + field.value === DefaultEventLocationTypeEnum.InPerson && moreThanOneInPersonOptions + ? field.label + : field.value, }; });