From 7da9236ae41bc3a9fd642ce2a1c149cff2583127 Mon Sep 17 00:00:00 2001 From: NenoR96 Date: Wed, 16 Mar 2022 11:13:50 +0100 Subject: [PATCH] fix: getUserProfile function followup --- widget/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/js/app.js b/widget/js/app.js index 829c665..3c49bec 100644 --- a/widget/js/app.js +++ b/widget/js/app.js @@ -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); }); });