From 1957150c9483326c5bbfbe518eeaf30a84a125f7 Mon Sep 17 00:00:00 2001 From: Sultan Al-Maari Date: Thu, 28 Nov 2024 19:02:24 +0100 Subject: [PATCH] fix: Revert: "fix: deep link analytics event triggered twice" (#11221) Revert "fix: deep link analytics event triggered twice (#11110)" This reverts commit 1cee0137025c647239f48329f20424469f027133. --- src/app/utils/useDeepLinks.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app/utils/useDeepLinks.ts b/src/app/utils/useDeepLinks.ts index 75beaeab836..ef0fc7af7b1 100644 --- a/src/app/utils/useDeepLinks.ts +++ b/src/app/utils/useDeepLinks.ts @@ -15,10 +15,6 @@ export function useDeepLinks() { const { trackEvent } = useTracking() useEffect(() => { - if (!isNavigationReady) { - return - } - Linking.getInitialURL().then((url) => { if (url) { handleDeepLink(url) @@ -27,10 +23,6 @@ export function useDeepLinks() { }, [isNavigationReady]) useEffect(() => { - if (!isNavigationReady) { - return - } - const subscription = Linking.addListener("url", ({ url }) => { handleDeepLink(url) })