We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c8ea24 + 58efdcb commit ea5f461Copy full SHA for ea5f461
src/libs/actions/App.js
@@ -438,6 +438,15 @@ function beginDeepLinkRedirect(shouldAuthenticateWithCurrentAccount = true) {
438
439
// eslint-disable-next-line rulesdir/no-api-side-effects-method
440
API.makeRequestWithSideEffects('OpenOldDotLink', {shouldRetry: false}, {}).then((response) => {
441
+ if (!response) {
442
+ Log.alert(
443
+ 'Trying to redirect via deep link, but the response is empty. User likely not authenticated.',
444
+ {response, shouldAuthenticateWithCurrentAccount, currentUserAccountID},
445
+ true,
446
+ );
447
+ return;
448
+ }
449
+
450
Browser.openRouteInDesktopApp(response.shortLivedAuthToken, currentUserEmail);
451
});
452
}
0 commit comments