Skip to content

Commit

Permalink
fix: do not initiate hooks in the teaser page
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Nov 8, 2024
1 parent b09cd0f commit 8ab0f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const App = ({
<CssBaseline />

<CookieBannerContextProvider>
<InitHooks />
{Component.name !== 'TeaserPage' && <InitHooks />}

<SearchParamsContextProvider>{getLayout(<Component {...pageProps} />)}</SearchParamsContextProvider>

Expand Down

0 comments on commit 8ab0f94

Please sign in to comment.