Skip to content

Commit

Permalink
Fixed storing cards
Browse files Browse the repository at this point in the history
  • Loading branch information
snischuk committed Jan 4, 2024
1 parent fe3e3c4 commit 2812f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/snischuk/scripts/pokemons.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ async function initPokemons() {

initCustomSelect();

const fetchedPokemons = await fetchPokemons();
renderCards(CARDS_CONTAINER_ELEMENT, fetchedPokemons);
allCards = await fetchPokemons();
renderCards(CARDS_CONTAINER_ELEMENT, allCards);

TEXT_INPUT_ELEMENT.addEventListener('input', onInputSearchHandler);
FORM_FILTERS_ELEMENT.addEventListener('change', onChangeFiltersHandler);
Expand Down

0 comments on commit 2812f29

Please sign in to comment.