Skip to content

Commit 710ef38

Browse files
committed
Revert "Merge pull request #4975 from HSLdevcom/DT-6261"
This reverts commit bc61b45, reversing changes made to d95e1a8.
1 parent cf95356 commit 710ef38

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/component/AppBarHsl.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Helmet } from 'react-helmet';
77
import { configShape } from '../util/shapes';
88
import { clearOldSearches, clearFutureRoutes } from '../util/storeUtils';
99
import { getJson } from '../util/xhrPromise';
10-
import { addAnalyticsEvent } from '../util/analyticsUtils';
1110

1211
const SiteHeader = lazy(() => import('@hsl-fi/site-header'));
1312
const SharedLocalStorageObserver = lazy(
@@ -107,15 +106,6 @@ const AppBarHsl = ({ lang, user, favourites }, context) => {
107106
const siteHeaderRef = useRef(null);
108107
const notificationTime = useRef(0);
109108

110-
useEffect(() => {
111-
if (user) {
112-
addAnalyticsEvent({
113-
event: 'user-hsl-id',
114-
hslId: user.sub,
115-
});
116-
}
117-
}, [user]);
118-
119109
useEffect(() => {
120110
const now = Date.now();
121111
// refresh only once per 5 seconds

0 commit comments

Comments
 (0)