Skip to content

Commit

Permalink
fix(PlayerCosmetics): Players not having data.vanityMeta.packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed May 20, 2024
1 parent 0563cd1 commit a3a9913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/PlayerCosmetics.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PlayerCosmetics {
* All cosmetics
* @type {string[]}
*/
this.allCosmetics = data.vanityMeta.packages ?? undefined;
this.allCosmetics = data?.vanityMeta?.packages || undefined;
/**
* Pets
* @type {Pets|null}
Expand Down

0 comments on commit a3a9913

Please sign in to comment.