fix: check for 0 energy points

This commit is contained in:
Prssanna Desai 2019-08-16 13:13:00 +05:30
parent f5add66330
commit 052e2fbc43

View file

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