fix: apply CodeRabbit auto-fixes

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
This commit is contained in:
coderabbitai[bot]
2026-06-09 16:50:02 +00:00
committed by GitHub
parent 198add3931
commit 5275f382b4
+5 -1
View File
@@ -56,8 +56,12 @@ function DeepLinkNavigationListener() {
const navigate = useNavigate();
useEffect(() => {
platform.deepLink.getPending().then((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]);