diff --git a/2-copy-of-code/lesson-18/scripts/amazon.js b/2-copy-of-code/lesson-18/scripts/amazon.js index fc8ae97..f03f36a 100644 --- a/2-copy-of-code/lesson-18/scripts/amazon.js +++ b/2-copy-of-code/lesson-18/scripts/amazon.js @@ -19,7 +19,7 @@ function renderProductsGrid() { let matchingKeyword = false; product.keywords.forEach((keyword) => { - if (keyword.toLowerCase().includes(search.toLowerCase())) { + if (search.toLowerCase().includes(keyword.toLowerCase())) { matchingKeyword = true; } });