This commit is contained in:
Dragon Fire
2020-12-10 08:47:23 -05:00
parent 7e98e2052c
commit e4f0735d59
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class Pokemon {
this.legendary = data.is_legendary;
this.mythical = data.is_mythical;
this.baby = data.is_baby;
this.heldItems = data.missingno ? data.heldItems : [];
this.heldItems = data.missingno ? data.held_items : [];
this.varieties = data.varieties.map(variety => {
const name = firstUpperCase(variety.pokemon.name
.replace(new RegExp(`${this.slug}-?`, 'i'), '')