Skip to content

Commit

Permalink
fix(achievement): level up (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorWinberg authored Apr 21, 2024
1 parent af48070 commit ffb4ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/achievement/achievement-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ module.exports = {
const response = await Achievement.getByName(user.id, "LEVEL_UP");
const { achievement, err } = response;
if (err) return false;
if (!achievement) return user.lvl > 0;

return (user.lvl > 0 && !achievement) || user.lvl > achievement.count;
return user.lvl > achievement.count;
},
FIRST_RECOLLECT: () => {
return false;
Expand Down

0 comments on commit ffb4ba7

Please sign in to comment.