Skip to content

Commit

Permalink
fix(Issue): WoolWars (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefChippy2 authored Feb 18, 2024
1 parent 06e0629 commit 71e70d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/MiniGames/WoolWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71e70d3

Please sign in to comment.