Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extenal API getUser edge case handling #704

Merged
merged 1 commit into from Apr 12, 2021
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Extenal API getUser edge case handling

In case user is not logged in - the API was not sending a response as the `getUser` promise was rejecting.
  • Loading branch information
chrmod committed Apr 12, 2021
commit a58257160ae6427ee7c8f56a41b9e5b540d6b0b4
@@ -1423,7 +1423,9 @@ function initializeEventListeners() {
}

if (recognized && request.name === 'getUser') {
account.getUser().then(sendResponse);
account.getUser()
.then(sendResponse)
.catch(() => sendResponse(null));
return true;
}

ProTip! Use n and p to navigate between commits in a pull request.