diff --git a/beta/src/pages/learn/thinking-in-react.md b/beta/src/pages/learn/thinking-in-react.md index d1114cc5..ea6c8155 100644 --- a/beta/src/pages/learn/thinking-in-react.md +++ b/beta/src/pages/learn/thinking-in-react.md @@ -346,7 +346,11 @@ function ProductTable({ products, filterText, inStockOnly }) { let lastCategory = null; products.forEach((product) => { - if (product.name.indexOf(filterText) === -1) { + if ( + product.name.toLowerCase().indexOf( + filterText.toLowerCase() + ) === -1 + ) { return; } if (inStockOnly && !product.stocked) { @@ -533,7 +537,11 @@ function ProductTable({ products, filterText, inStockOnly }) { let lastCategory = null; products.forEach((product) => { - if (product.name.indexOf(filterText) === -1) { + if ( + product.name.toLowerCase().indexOf( + filterText.toLowerCase() + ) === -1 + ) { return; } if (inStockOnly && !product.stocked) {