diff --git a/src/libs/actions/App.js b/src/libs/actions/App.js index fffe43b88ee9..a9c3f8775cba 100644 --- a/src/libs/actions/App.js +++ b/src/libs/actions/App.js @@ -438,6 +438,15 @@ function beginDeepLinkRedirect(shouldAuthenticateWithCurrentAccount = true) { // eslint-disable-next-line rulesdir/no-api-side-effects-method API.makeRequestWithSideEffects('OpenOldDotLink', {shouldRetry: false}, {}).then((response) => { + if (!response) { + Log.alert( + 'Trying to redirect via deep link, but the response is empty. User likely not authenticated.', + {response, shouldAuthenticateWithCurrentAccount, currentUserAccountID}, + true, + ); + return; + } + Browser.openRouteInDesktopApp(response.shortLivedAuthToken, currentUserEmail); }); }