Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

Commit 8722c57

Browse files
committed
search product name regardless of letter case to improve user experience
1 parent ed64ae4 commit 8722c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/components/product-table.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ProductTable = ({products, filterText, inStockOnly}) => {
88
lastCategory = null;
99

1010
products.map((product) => {
11-
if (product.name.indexOf(filterText) === -1 || (!product.stocked && inStockOnly)) {
11+
if (product.name.toLowerCase().indexOf(filterText.toLowerCase()) === -1 || (!product.stocked && inStockOnly)) {
1212
return;
1313
}
1414

0 commit comments

Comments
 (0)