Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
Elostay committed Sep 28, 2023
1 parent ea69684 commit e760f40
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 @@ -36,7 +36,9 @@ function onClickSelect(e) {
fetchCatByBreed(breedId)
.then(resp => {
select.classList.remove('hide');

const data = resp.data[0].breeds[0];

return `<img src="${resp.data[0].url}" alt="" width="500">
<h2>${data.name}</h2>
<p>${data.description}</p>
Expand Down

0 comments on commit e760f40

Please sign in to comment.