From 5013975f18babb7a9dc92a5ff5a2cc201761f9dd Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Tue, 9 Jun 2026 09:53:55 -0700 Subject: [PATCH] log error --- js/desktop/src/App.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/desktop/src/App.tsx b/js/desktop/src/App.tsx index 04ed4e8..8a84a3b 100644 --- a/js/desktop/src/App.tsx +++ b/js/desktop/src/App.tsx @@ -56,13 +56,15 @@ function DeepLinkNavigationListener() { const navigate = useNavigate(); useEffect(() => { - platform.deepLink.getPending() + platform.deepLink + .getPending() .then((path) => { if (path) navigate(path); }) - .catch((error) => { - console.error('Failed to get pending deep link:', error); + .catch((err) => { + logError(err, { scope: 'deepLink.getPending' }); }); + return platform.deepLink.onNavigate((path) => navigate(path)); }, [navigate]);