Skip to content

Scheduling infrastructure for absolutely everyone.

fix: intercom showing on cal video page (#23713)

Amit Sharma0fe775962f03
diff --git a/packages/features/ee/support/lib/intercom/provider.tsx b/packages/features/ee/support/lib/intercom/provider.tsx
index 51d34f0c0aa..9f17fb7c4c5 100644
--- a/packages/features/ee/support/lib/intercom/provider.tsx
+++ b/packages/features/ee/support/lib/intercom/provider.tsx
@@ -1,4 +1,5 @@
"use client";
+
import { usePathname } from "next/navigation";
import { useEffect, type FC } from "react";
import { IntercomProvider } from "react-use-intercom";
@@ -36,8 +37,9 @@ const Provider: FC<{ children: React.ReactNode }> = ({ children }) => {
const pathname = usePathname();
const isOnboardingPage = pathname?.startsWith("/getting-started");
+ const isCalVideoPage = pathname?.startsWith("/video/");
- if (isOnboardingPage) {
+ if (isOnboardingPage || isCalVideoPage) {
return <>{children}</>;
}