Skip to content

Commit

Permalink
Fix empty filterableProductSection title.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielcliu-ifixit committed Dec 20, 2023
1 parent 9888e3a commit 5f51d78
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ const ProductListEmptyState = forwardRef<EmptyStateProps, 'div'>(

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;
Expand All @@ -286,7 +278,7 @@ const ProductListEmptyState = forwardRef<EmptyStateProps, 'div'>(
opacity="0.8"
/>
<Text fontSize="lg" fontWeight="bold" w="full">
No matching products found in {title}
No matching products found in {currentProductList.title}
</Text>
<Text maxW="500px" color="gray.500">
Try adjusting your search or filter to find what you&apos;re
Expand Down

0 comments on commit 5f51d78

Please sign in to comment.