Skip to content

Commit 6b8aeb2

Browse files
authored
fix: retirer le questionnaire des pages widgets (#6806)
1 parent 7c7adf6 commit 6b8aeb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default function DefaultLayout({
3333
const lang = "fr";
3434
const pathname = usePathname() || "";
3535
const showCookieBanner = shouldShowCookieBanner(pathname);
36+
const showTally = !pathname.startsWith("/widgets");
3637

3738
return (
3839
<html {...getHtmlAttributes({ lang })}>
@@ -63,7 +64,7 @@ export default function DefaultLayout({
6364
>
6465
{children}
6566
{showCookieBanner && <ConsentManager />}
66-
<Tally id={"3E2Ypo"} />
67+
{showTally && <Tally id={"3E2Ypo"} />}
6768
</DsfrProvider>
6869
<MatomoAnalytics />
6970
{ENV === "development" && <SentryTest />}

0 commit comments

Comments
 (0)