diff --git a/src/structures/Pet.js b/src/structures/Pet.js index 4689c592..4404c340 100644 --- a/src/structures/Pet.js +++ b/src/structures/Pet.js @@ -24,7 +24,7 @@ class Pet { * @type {boolean} */ this.active = data.currentPet === name.toUpperCase(); - const stats = data.petStats[name.toUpperCase()]; + const stats = data.petStats && data.petStats[name.toUpperCase()]; /** * Stats of the pet, if any * @type {object}