This commit is contained in:
Dragon Fire
2021-01-22 18:29:37 -05:00
parent c23af2cb4b
commit 9d7474b295
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class Move {
this.power = data.power;
this.pp = data.pp;
this.type = firstUpperCase(data.type.name);
this.contestType = firstUpperCase(data.contest_type.name);
this.contestType = data.contest_type ? firstUpperCase(data.contest_type.name) : null;
this.class = firstUpperCase(data.damage_class.name);
}