Skip to content

Commit 0fe7759

Browse files
fix: intercom showing on cal video page (calcom#23713)
* feat: support auto create agent * fix: intercom showing on cal.video page * Revert "feat: support auto create agent" This reverts commit 084319c. --------- Co-authored-by: Udit Takkar <udit222001@gmail.com>
1 parent 412a699 commit 0fe7759

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/features/ee/support/lib/intercom/provider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client";
2+
23
import { usePathname } from "next/navigation";
34
import { useEffect, type FC } from "react";
45
import { IntercomProvider } from "react-use-intercom";
@@ -36,8 +37,9 @@ const Provider: FC<{ children: React.ReactNode }> = ({ children }) => {
3637

3738
const pathname = usePathname();
3839
const isOnboardingPage = pathname?.startsWith("/getting-started");
40+
const isCalVideoPage = pathname?.startsWith("/video/");
3941

40-
if (isOnboardingPage) {
42+
if (isOnboardingPage || isCalVideoPage) {
4143
return <>{children}</>;
4244
}
4345

0 commit comments

Comments
 (0)