Skip to content

Commit

Permalink
Update pokedexAPI.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andreperegrina committed Mar 16, 2021
1 parent 20e8b0b commit 35017a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/pokedexAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function getPokemons() {
const listPokemonsCalls = response.data.results;

const pokemons = response.data.results;
for (let i = 0; i < 20; i++) {
for (let i = 0; i < pokemons.length; i++) {
const pokemonToCall = listPokemonsCalls[i];
callPokemons.push(axios.get(pokemonToCall.url));
}
Expand Down

0 comments on commit 35017a7

Please sign in to comment.