Skip to content

Commit

Permalink
Checking description
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-nichols committed Feb 26, 2024
1 parent 8c83c8e commit f49ab3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit f49ab3b

Please sign in to comment.