From 589d253d3723caf9c3ff48229db01de475af2dec Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 10 Dec 2020 09:38:26 -0500 Subject: [PATCH] Fix --- structures/pokemon/Pokemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 1423964b..fca4af66 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -207,7 +207,7 @@ module.exports = class Pokemon { async fetchEncounters() { if (!this.encountersURL) return null; - if (this.encounters.length) return this.encounters; + if (this.encounters) return this.encounters; const { body } = await request.get(this.encountersURL); if (!body.length) { this.encounters = body;