Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #145 from poap-xyz/fix/matomo-event-title
Browse files Browse the repository at this point in the history
Fix check if event is loaded to track page view
  • Loading branch information
jm42 authored May 1, 2023
2 parents c580b80 + 1b77110 commit 2186d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2186d51

Please sign in to comment.