diff --git a/src/Components/ProductsPage/ViewManager.tsx b/src/Components/ProductsPage/ViewManager.tsx index 725bb1a..d9de4a5 100644 --- a/src/Components/ProductsPage/ViewManager.tsx +++ b/src/Components/ProductsPage/ViewManager.tsx @@ -54,8 +54,11 @@ export default function ViewManager(props: ProductList) { - Product.name.toLowerCase().includes(searchTerm) + Products={props.Products.filter( + (Product) => + Product.name.toLowerCase().includes(searchTerm) || + Product.date_added.toLowerCase().includes(searchTerm) || + Product.id.toString().includes(searchTerm) )} />