From 5f51d7800a54e562de3605a0008ef56683cd9cf9 Mon Sep 17 00:00:00 2001 From: danielcliu-ifixit Date: Wed, 20 Dec 2023 15:32:35 -0800 Subject: [PATCH] Fix empty filterableProductSection title. We used to combine the productlist title with the item type. Now that were using the current product list, we dont need to do that anymore. --- .../sections/FilterableProductsSection/index.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/templates/product-list/sections/FilterableProductsSection/index.tsx b/frontend/templates/product-list/sections/FilterableProductsSection/index.tsx index df1243d5..983f3ee0 100644 --- a/frontend/templates/product-list/sections/FilterableProductsSection/index.tsx +++ b/frontend/templates/product-list/sections/FilterableProductsSection/index.tsx @@ -254,14 +254,6 @@ const ProductListEmptyState = forwardRef( const isFiltered = hasRefinements || hasSearchQuery; - const itemType = useDevicePartsItemType(currentProductList); - const title = getProductListTitle( - { - title: currentProductList.title, - type: currentProductList.type, - }, - itemType - ); const encodedQuery = encodeURIComponent(searchBox.query); const ancestors = currentProductList.ancestors; @@ -286,7 +278,7 @@ const ProductListEmptyState = forwardRef( opacity="0.8" /> - No matching products found in {title} + No matching products found in {currentProductList.title} Try adjusting your search or filter to find what you're