diff --git a/components/search/SearchResults.tsx b/components/search/SearchResults.tsx index 21b9682..99068e4 100644 --- a/components/search/SearchResults.tsx +++ b/components/search/SearchResults.tsx @@ -88,7 +88,18 @@ const SearchResults = (props: SearchResultsProps) => {
{result.fulfillsGEs - .map((obj) => obj.category) + .map((obj) => { + const category = + obj.category; + + return category.includes( + ":", + ) + ? category.split( + ": ", + )[1] + : category; + }) .join(", ")}
diff --git a/components/search/SearchSelect.tsx b/components/search/SearchSelect.tsx index c7df1de..e904cfa 100644 --- a/components/search/SearchSelect.tsx +++ b/components/search/SearchSelect.tsx @@ -21,17 +21,31 @@ export const SearchSelect = (props: DropdownComponentProps) => { return (