diff --git a/src/app/app-content.jsx b/src/app/app-content.jsx index 667e4eb1..bb378dbf 100644 --- a/src/app/app-content.jsx +++ b/src/app/app-content.jsx @@ -10,6 +10,7 @@ import { useApiBase } from '@/hooks/useApiBase'; import { useStore } from '@/hooks/useStore'; import useThemeSwitcher from '@/hooks/useThemeSwitcher'; import useTrackjs from '@/hooks/useTrackjs'; +import initDatadog from '@/utils/datadog'; import { setSmartChartsPublicPath } from '@deriv/deriv-charts'; import { ThemeProvider } from '@deriv-com/quill-ui'; import { localize } from '@deriv-com/translations'; @@ -132,6 +133,14 @@ const AppContent = observer(() => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [client.is_landing_company_loaded, is_api_initialized]); + // TODO: fix + // const isMounted = useIsMounted(); + // const { data: remote_config_data } = useRemoteConfig(isMounted()); + // const { tracking_datadog } = data; + useEffect(() => { + initDatadog(true); // (tracking_datadog); + }, []); // [tracking_datadog]) + if (common?.error) return null; return is_loading ? (