Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Elostay committed Sep 28, 2023
1 parent 6543e94 commit 5d8d29d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ fetchBreeds()

function onClickSelect(e) {
const breedId = e.target.value;

select.classList.add('hide');
loader.classList.remove('hide');
catInfo.classList.add('hide');

fetchCatByBreed(breedId)
.then(resp => {
select.classList.remove('hide');
Expand Down

0 comments on commit 5d8d29d

Please sign in to comment.