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:
committed by
GitHub
parent
198add3931
commit
5275f382b4
@@ -56,9 +56,13 @@ function DeepLinkNavigationListener() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
platform.deepLink.getPending().then((path) => {
|
platform.deepLink.getPending()
|
||||||
if (path) navigate(path);
|
.then((path) => {
|
||||||
});
|
if (path) navigate(path);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error('Failed to get pending deep link:', error);
|
||||||
|
});
|
||||||
return platform.deepLink.onNavigate((path) => navigate(path));
|
return platform.deepLink.onNavigate((path) => navigate(path));
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user