diff --git a/blocks/header/header.js b/blocks/header/header.js index 990e057..083a157 100644 --- a/blocks/header/header.js +++ b/blocks/header/header.js @@ -248,7 +248,8 @@ function handleSearchFormSubmit(formElement) { // Perform a search based on the fetched JSON data const results = jsonData.data.filter((item) => { // Customize this condition to match your search criteria - const it = item.subtitle.toLowerCase().includes(inputValue); + const it = item.description.toLowerCase().includes(inputValue); + const return it; }); const resultBlock = document.querySelector('.search-results');