fix: check for 0 energy points
This commit is contained in:
parent
f5add66330
commit
052e2fbc43
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue