From 7972e390fca0c5ab1b8ceb14b26b1330eaf9e0f2 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Tue, 21 Nov 2023 22:50:42 +0100 Subject: [PATCH] fix: player_data being undefined --- src/stats/skills.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/skills.js b/src/stats/skills.js index e38210cd91..8359389212 100644 --- a/src/stats/skills.js +++ b/src/stats/skills.js @@ -8,7 +8,7 @@ async function getLevels(userProfile, profileMembers, hypixelProfile, levelCaps) const SKILL = userProfile.player_data.experience; const socialExperience = Object.keys(profileMembers).reduce((a, b) => { - return a + profileMembers[b].player_data.experience?.SKILL_SOCIAL || 0; + return a + profileMembers[b].player_data?.experience?.SKILL_SOCIAL || 0; }, 0); Object.assign(skillLevels, {