Skip to content

Commit

Permalink
Updated pokemonList to pokemonMap as per PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
AevitasDragonkin committed Feb 2, 2024
1 parent b2da710 commit 4a21287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/Gyms/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3>Pokémon Team</h3>
</td>
<td class="align-middle" data-bind="text: $data.maxHealth.toLocaleString()"></td>
<td class="align-middle" data-bind="text: $data.level.toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonList.find(p => p.name == $data.name).exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonMap[$data.name].exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="foreach: pokemonMap[$data.name].type">
<span class="badge text-white" data-bind="text: PokemonType[$data], style: {
backgroundColor: TypeColor[$data]
Expand Down Expand Up @@ -118,7 +118,7 @@ <h3>Pokémon Team</h3>
</td>
<td class="align-middle" data-bind="text: $data.maxHealth.toLocaleString()"></td>
<td class="align-middle" data-bind="text: $data.level.toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonList.find(p => p.name == $data.name).exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonMap[$data.name].exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="foreach: pokemonMap[$data.name].type">
<span class="badge text-white" data-bind="text: PokemonType[$data], style: {
backgroundColor: TypeColor[$data]
Expand Down Expand Up @@ -147,7 +147,7 @@ <h3>Pokémon Team</h3>
</td>
<td class="align-middle" data-bind="text: $data.maxHealth.toLocaleString()"></td>
<td class="align-middle" data-bind="text: $data.level.toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonList.find(p => p.name == $data.name).exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="text: (pokemonMap[$data.name].exp * 1.5).toLocaleString()"></td>
<td class="align-middle" data-bind="foreach: pokemonMap[$data.name].type">
<span class="badge text-white" data-bind="text: PokemonType[$data], style: {
backgroundColor: TypeColor[$data]
Expand Down

0 comments on commit 4a21287

Please sign in to comment.