aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/achievements.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/achievements.ts')
-rw-r--r--src/cleaners/achievements.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts
index dcb1bec..beedaf9 100644
--- a/src/cleaners/achievements.ts
+++ b/src/cleaners/achievements.ts
@@ -35,7 +35,7 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe
let tieredAchievements: TieredAchievement[] = []
for (const [achievementId, achievementData] of Object.entries(achievementsData.tiered)) {
- const amount = data.achievements[`skyblock_${achievementId.toLowerCase()}`] ?? null
+ const amount = data.achievements[`skyblock_${achievementId.toLowerCase()}`] ?? 0
let tier = 0
for (const tierData of achievementData.tiers) {