From be507a4ceed8f2a011f27f85f9c31f5081371b31 Mon Sep 17 00:00:00 2001 From: Kirk Scheibelhut Date: Wed, 3 Jul 2019 12:11:27 -0700 Subject: [PATCH] Fix lint errors --- js/client-topbar.js | 2 +- src/battle-tooltips.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/client-topbar.js b/js/client-topbar.js index 28007407d..b0a35e25e 100644 --- a/js/client-topbar.js +++ b/js/client-topbar.js @@ -502,7 +502,7 @@ if (window.Notification) { buf += '

'; } - buf +='

'; + buf += '

'; var tours = Dex.prefs('tournaments') || 'notify'; buf += '

'; diff --git a/src/battle-tooltips.ts b/src/battle-tooltips.ts index cff1ab887..64ae5dfb8 100644 --- a/src/battle-tooltips.ts +++ b/src/battle-tooltips.ts @@ -1579,7 +1579,8 @@ class BattleTooltips { abilityData.baseAbility = clientPokemon.baseAbility; } } else { - const template = this.battle.dex.getTemplate(clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || ''); + const species = clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || ''; + const template = this.battle.dex.getTemplate(species); if (template.exists && template.abilities) { abilityData.possibilities = [template.abilities['0']]; if (template.abilities['1']) abilityData.possibilities.push(template.abilities['1']);