From 5275f382b43ca2328b5676002c0a15076fc37d8e Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 16:50:02 +0000 Subject: [PATCH] fix: apply CodeRabbit auto-fixes Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit --- js/desktop/src/App.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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]);