Skip to content

Commit

Permalink
check achievement tracker undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
syoung212 committed May 2, 2024
1 parent 783a51b commit d347248
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/achievement/achievement.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ export class AchievementService {

for (const ach of uncompletedAchs) {
let achTracker = ach.trackers[0];
if(achTracker == undefined) continue;

// In case the above completion check fails
if (achTracker.progress < ach.requiredPoints) {
Expand Down

0 comments on commit d347248

Please sign in to comment.