This commit is contained in:
Dragon Fire
2020-12-10 09:38:26 -05:00
parent 91ea2e7081
commit 589d253d37
+1 -1
View File
@@ -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;