From 710ef3819dab12906cc3f5707a84b08f2dd094bc Mon Sep 17 00:00:00 2001 From: Vesa Meskanen Date: Thu, 21 Mar 2024 13:54:59 +0200 Subject: [PATCH] Revert "Merge pull request #4975 from HSLdevcom/DT-6261" This reverts commit bc61b45501db12b75ff0f43f4c0c0e4915501ed0, reversing changes made to d95e1a829448d384572e6f6d7f084d8e80a67f50. --- app/component/AppBarHsl.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/component/AppBarHsl.js b/app/component/AppBarHsl.js index 049acd2618..856833983c 100644 --- a/app/component/AppBarHsl.js +++ b/app/component/AppBarHsl.js @@ -7,7 +7,6 @@ import { Helmet } from 'react-helmet'; import { configShape } from '../util/shapes'; import { clearOldSearches, clearFutureRoutes } from '../util/storeUtils'; import { getJson } from '../util/xhrPromise'; -import { addAnalyticsEvent } from '../util/analyticsUtils'; const SiteHeader = lazy(() => import('@hsl-fi/site-header')); const SharedLocalStorageObserver = lazy( @@ -107,15 +106,6 @@ const AppBarHsl = ({ lang, user, favourites }, context) => { const siteHeaderRef = useRef(null); const notificationTime = useRef(0); - useEffect(() => { - if (user) { - addAnalyticsEvent({ - event: 'user-hsl-id', - hslId: user.sub, - }); - } - }, [user]); - useEffect(() => { const now = Date.now(); // refresh only once per 5 seconds