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();
|
||||
|
||||
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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user