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

Commit

Permalink
Add event to check for tracking event page view
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed May 1, 2023
1 parent 4c7ce46 commit 15dffb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function Event() {
}, []);

useEffect(() => {
if (succeededLoadingEvent() && !tableIsLoading) {
if (succeededLoadingEvent() && !tableIsLoading && event && event?.name) {
trackPageView({
href: window.location.href,
documentTitle: `POAP Gallery - Event - ${event.name}`,
Expand Down

0 comments on commit 15dffb6

Please sign in to comment.