We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43ddaa6 + cc864ad commit 434e9c9Copy full SHA for 434e9c9
src/structures/Pet.js
@@ -24,7 +24,7 @@ class Pet {
24
* @type {boolean}
25
*/
26
this.active = data.currentPet === name.toUpperCase();
27
- const stats = data.petStats[name.toUpperCase()];
+ const stats = data.petStats && data.petStats[name.toUpperCase()];
28
/**
29
* Stats of the pet, if any
30
* @type {object}
0 commit comments