Skip to content

Commit ea5f461

Browse files
authored
Merge pull request #26839 from Expensify/marcaaron-addLogForDoza
2 parents 9c8ea24 + 58efdcb commit ea5f461

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/libs/actions/App.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,15 @@ function beginDeepLinkRedirect(shouldAuthenticateWithCurrentAccount = true) {
438438

439439
// eslint-disable-next-line rulesdir/no-api-side-effects-method
440440
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+
441450
Browser.openRouteInDesktopApp(response.shortLivedAuthToken, currentUserEmail);
442451
});
443452
}

0 commit comments

Comments
 (0)