diff --git a/js/desktop/src/App.tsx b/js/desktop/src/App.tsx index 9c1f16a..04ed4e8 100644 --- a/js/desktop/src/App.tsx +++ b/js/desktop/src/App.tsx @@ -56,9 +56,13 @@ function DeepLinkNavigationListener() { const navigate = useNavigate(); useEffect(() => { - platform.deepLink.getPending().then((path) => { - if (path) navigate(path); - }); + platform.deepLink.getPending() + .then((path) => { + if (path) navigate(path); + }) + .catch((error) => { + console.error('Failed to get pending deep link:', error); + }); return platform.deepLink.onNavigate((path) => navigate(path)); }, [navigate]);