Skip to content

Commit

Permalink
Revert "Merge pull request #4975 from HSLdevcom/DT-6261"
Browse files Browse the repository at this point in the history
This reverts commit bc61b45, reversing
changes made to d95e1a8.
  • Loading branch information
vesameskanen committed Mar 21, 2024
1 parent cf95356 commit 710ef38
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 { 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 710ef38

Please sign in to comment.