Skip to content

Commit

Permalink
fix(condo): remove Yandex Metrica if there is no runtime configuration (
Browse files Browse the repository at this point in the history
#4867)

Co-authored-by: Pavel White <[email protected]>
Co-authored-by: Matthew <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent e1004e1 commit 5be0b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/condo/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ const MyApp = ({ Component, pageProps }) => {
useHotCodeReload()
dayjs.locale(intl.locale)
const router = useRouter()
const { publicRuntimeConfig: { popupSmartConfig } } = getConfig()
const { publicRuntimeConfig: { yandexMetrikaID, popupSmartConfig } } = getConfig()

const LayoutComponent = Component.container || BaseLayout
// TODO(Dimitreee): remove this mess later
Expand Down Expand Up @@ -500,7 +500,7 @@ const MyApp = ({ Component, pageProps }) => {
</PostMessageProvider>
</TasksProvider>
</LayoutContextProvider>
<YandexMetrika/>
{yandexMetrikaID && <YandexMetrika />}
{!isEmpty(popupSmartConfig) && <PopupSmart />}
</CacheProvider>
</ConfigProvider>
Expand Down

0 comments on commit 5be0b89

Please sign in to comment.