From e2e3eae9b351fe5b4d7c4bb277a1859edb46bb6e Mon Sep 17 00:00:00 2001 From: olgatenison <88651744+olgatenison@users.noreply.github.com> Date: Sun, 22 Oct 2023 17:36:01 +0300 Subject: [PATCH] braad fixed --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 941ab15..b17420a 100755 --- a/src/index.js +++ b/src/index.js @@ -51,7 +51,7 @@ function showCat(breedId) { fetchBreeds() // для отримання інформації про породу і зберігаємо її в selectedBreed .then(data => { - selectedBreed = data.find(breed => breed.id === breedId); + const selectedBreed = data.find(breed => breed.id === breedId); //отримуэмо результат з запиту картинки return fetchCatByBreed(breedId); })