From 52c137665a9af78c0d509aaea5236f54169ddaf2 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 30 Apr 2022 01:08:04 -0500 Subject: fix error --- src/cleaners/skyblock/skills.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cleaners/skyblock') diff --git a/src/cleaners/skyblock/skills.ts b/src/cleaners/skyblock/skills.ts index 8d0f16d..8aeaffe 100644 --- a/src/cleaners/skyblock/skills.ts +++ b/src/cleaners/skyblock/skills.ts @@ -223,7 +223,7 @@ export async function cleanSkills(data: typedHypixelApi.SkyBlockProfileMember, p // if the player has no skills but has kills, we can assume they have the skills api off // (we check kills to know whether the profile is actually used, this is kinda arbitrary) - if (skills.length === 0 && Object.keys(data.stats).includes('kills')) { + if (skills.length === 0 && 'stats' in data && Object.keys(data.stats).includes('kills')) { return skillsFromSkyBlockAchievements(player.achievements.skyblock) } -- cgit