Fix: Redirect only those apps that extend 'EventType' to the new app install flow (#14527)

This commit is contained in:
Somay Chauhan
2024-04-11 18:37:01 +00:00
committed by GitHub
parent 7836aeacc6
commit 0c67f4940a
@@ -1,9 +1,6 @@
import type { AppMeta } from "@calcom/types/App";
export const shouldRedirectToAppOnboarding = (appMetadata: AppMeta) => {
// const appMetadata = appStoreMetadata[dirName as keyof typeof appStoreMetadata];
const hasEventTypes = appMetadata?.extendsFeature == "EventType";
const isOAuth = appMetadata?.isOAuth;
const isCalendar = appMetadata?.category === "calendar";
return !isCalendar && (hasEventTypes || isOAuth);
return hasEventTypes;
};