diff --git a/02-pokemon/src/components/PokeCard.jsx b/02-pokemon/src/components/PokeCard.jsx index c659833..2acf791 100644 --- a/02-pokemon/src/components/PokeCard.jsx +++ b/02-pokemon/src/components/PokeCard.jsx @@ -10,7 +10,7 @@ export function PokeCard({key,pokemon}){ if(pokemon.types[1]){ color2 = pokemon.types[1]["type"]["name"] } - //let total=pokemon.stats.reduce((total,stat) =>{return total+stat["base_stat"]},0) + let total=pokemon.stats.reduce((total,stat) =>{return total+stat["base_stat"]},0) return(
Total: {total}
Estadísticas totales: {total} puntos
Descripción:
{pokemon.name.toUpperCase()} should have a description here; sadly, I don't know where it's description is, so don't expect this to work...
Lista de movimientos:
-