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; }