From 71e70d3e17368ed925575f3127b41a00a1c96dfb Mon Sep 17 00:00:00 2001 From: ChiefChippy2 <45596322+ChiefChippy2@users.noreply.github.com> Date: Sun, 18 Feb 2024 01:03:30 +0100 Subject: [PATCH] fix(Issue): WoolWars (#447) --- src/structures/MiniGames/WoolWars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/MiniGames/WoolWars.js b/src/structures/MiniGames/WoolWars.js index c7f2b502..f069cdeb 100644 --- a/src/structures/MiniGames/WoolWars.js +++ b/src/structures/MiniGames/WoolWars.js @@ -83,7 +83,7 @@ class WoolWars { */ static generateStatsFor(data, _class) { // N.B i called it _class instead of class because reserved keyword - const workingData = (_class ? data?.['classes'][_class] : data) || {}; + const workingData = (_class ? data?.['classes']?.[_class] : data) || {}; return { roundWins: workingData.wins || 0, gamesPlayed: workingData.games_played || 0,