Skip to content

Commit

Permalink
fix undefined value in collection page tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchezyali committed Aug 11, 2023
1 parent 0134ac5 commit a11a5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion morpheus-client/pages/gallery/[collectionId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const CollectionDetail: NextPage = () => {
}, [collectionId]);

useEffect(() => {
if (cookiesStatus === "accepted") {
if (cookiesStatus === "accepted" && collection) {
sendAnalyticsRecord("page_view", {
page_location: window.location.href,
page_title: document?.title,
Expand Down

0 comments on commit a11a5a2

Please sign in to comment.