From 4c7ce46f7db95a770ca6f534a67ae5e25f32fd90 Mon Sep 17 00:00:00 2001 From: jm42 Date: Mon, 1 May 2023 14:14:39 -0300 Subject: [PATCH] Release v0.20.1 (#146) * Fix check if event is loaded to track page view * Add not loading --- src/pages/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/event.js b/src/pages/event.js index 5fa5ea3..24ec359 100644 --- a/src/pages/event.js +++ b/src/pages/event.js @@ -120,13 +120,13 @@ export function Event() { }, []); useEffect(() => { - if (event) { + if (succeededLoadingEvent() && !tableIsLoading) { trackPageView({ href: window.location.href, documentTitle: `POAP Gallery - Event - ${event.name}`, }); } - }, [event]); + }, [event, succeededLoadingEvent, tableIsLoading]); useEffect(() => { // Get new batch of tokens