mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1180106 - don't attempt to fetch an FxA user profile when no user is logged in. r=oeger
This commit is contained in:
parent
fcca063783
commit
2564420a2a
@ -313,7 +313,7 @@ let gFxAccounts = {
|
||||
fxAccounts.getSignedInUser().then(userData => {
|
||||
// userData may be null here when the user is not signed-in, but that's expected
|
||||
updateWithUserData(userData);
|
||||
return fxAccounts.getSignedInUserProfile();
|
||||
return userData ? fxAccounts.getSignedInUserProfile() : null;
|
||||
}).then(profile => {
|
||||
if (!profile) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user