Skip to content

Commit

Permalink
Merge pull request #14 from NenoR96/getuserprofile
Browse files Browse the repository at this point in the history
fix: getUserProfile function followup
  • Loading branch information
nteske authored Mar 28, 2022
2 parents 6faf0b2 + 7da9236 commit 1a15a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function listCtrl($scope) {
voterIds.map(userId => {
return new Promise((resolve, reject) => {
buildfire.auth.getUserProfile({ userId }, (error, user) => {
if (error) return reject(error);
if (error || !user) return reject(error);
resolve(user);
});
});
Expand Down

0 comments on commit 1a15a9c

Please sign in to comment.