log error

This commit is contained in:
Arjun Patel
2026-06-09 09:53:55 -07:00
parent 5275f382b4
commit 5013975f18
+5 -3
View File
@@ -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]);