From b4c62b3c43f45c9fdc190b5f7be16079592d3b0a Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:05:52 +0400 Subject: [PATCH] fix create check for managed events (#14165) --- .../features/eventtypes/components/CreateEventTypeDialog.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx b/packages/features/eventtypes/components/CreateEventTypeDialog.tsx index 8521494189..2b350f2240 100644 --- a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx +++ b/packages/features/eventtypes/components/CreateEventTypeDialog.tsx @@ -7,7 +7,6 @@ import { z } from "zod"; import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider"; import { classNames } from "@calcom/lib"; -import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery"; import { HttpError } from "@calcom/lib/http-error"; @@ -91,8 +90,6 @@ export default function CreateEventTypeDialog({ } = useTypedQuery(querySchema); const teamProfile = profileOptions.find((profile) => profile.teamId === teamId); - const isSelfHosted = !HOSTED_CAL_FEATURES; - const isEE = !!(isSelfHosted || isOrganization); const form = useForm>({ defaultValues: { length: 15, @@ -288,7 +285,7 @@ export default function CreateEventTypeDialog({

{t("round_robin_description")}

<> - {isAdmin && isEE && ( + {isAdmin && (