Skip to content

Commit

Permalink
Revert "Revert "Revert "Revert "Revert "Merge pull request #4975 from…
Browse files Browse the repository at this point in the history
… HSLdevcom/DT-6261"""""

This reverts commit b55dfd2.
  • Loading branch information
vesameskanen committed Mar 23, 2024
1 parent 8f8fa0d commit 19ce5ed
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/component/AppBarHsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Helmet } from 'react-helmet';
import { favouriteShape, 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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 19ce5ed

Please sign in to comment.