From 052e2fbc434184d5336e52100bb2a044c0ac0797 Mon Sep 17 00:00:00 2001 From: Prssanna Desai Date: Fri, 16 Aug 2019 13:13:00 +0530 Subject: [PATCH] fix: check for 0 energy points --- frappe/desk/page/user_profile/user_profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/page/user_profile/user_profile.js b/frappe/desk/page/user_profile/user_profile.js index 26e99d311e..518871cdf9 100644 --- a/frappe/desk/page/user_profile/user_profile.js +++ b/frappe/desk/page/user_profile/user_profile.js @@ -403,7 +403,7 @@ class UserProfile { user: this.user_id, } ).then(r => { - if (r) { + if (r[this.user_id]) { this.energy_points = r[this.user_id].energy_points; this.review_points = r[this.user_id].review_points; }