Skip to content

Commit

Permalink
Merge pull request #367 from poap-xyz/release/v1.15.6
Browse files Browse the repository at this point in the history
Release v1.15.6
  • Loading branch information
jm42 authored Jun 15, 2024
2 parents be1bcdc + d1ad90a commit 2203eb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/poap-family",
"version": "1.15.5",
"version": "1.15.6",
"author": {
"name": "POAP",
"url": "https://poap.xyz"
Expand Down
8 changes: 5 additions & 3 deletions src/app/layout/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import CenterPage from 'components/CenterPage'
export default function Root() {
const fetcher = useFetcher()
const navigation = useNavigation()
const { trackPageView, enableLinkTracking } = useAnalytics()
const { trackPageView } = useAnalytics()
const { title } = useContext(HTMLContext)

useEffect(
Expand All @@ -20,13 +20,15 @@ export default function Root() {

useEffect(
() => {
if (title === 'POAP Family' && window.location.pathname !== '/') {
return
}
trackPageView({
href: window.location.href,
documentTitle: title,
})
enableLinkTracking()
},
[title, trackPageView, enableLinkTracking]
[title, trackPageView]
)

if (fetcher.state === 'loading' || navigation.state === 'loading') {
Expand Down

0 comments on commit 2203eb6

Please sign in to comment.