Skip to content

Commit

Permalink
fix: Revert: "fix: deep link analytics event triggered twice" (#11221)
Browse files Browse the repository at this point in the history
Revert "fix: deep link analytics event triggered twice (#11110)"

This reverts commit 1cee013.
  • Loading branch information
MrSltun authored Nov 28, 2024
1 parent adac481 commit 1957150
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/utils/useDeepLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export function useDeepLinks() {
const { trackEvent } = useTracking()

useEffect(() => {
if (!isNavigationReady) {
return
}

Linking.getInitialURL().then((url) => {
if (url) {
handleDeepLink(url)
Expand All @@ -27,10 +23,6 @@ export function useDeepLinks() {
}, [isNavigationReady])

useEffect(() => {
if (!isNavigationReady) {
return
}

const subscription = Linking.addListener("url", ({ url }) => {
handleDeepLink(url)
})
Expand Down

0 comments on commit 1957150

Please sign in to comment.