Skip to content

Commit

Permalink
(PC-33718) refactor(useSortedSearchCategories): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
nmajorfrances-pass committed Jan 10, 2025
1 parent ca91245 commit ec8ec58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useSortedSearchCategories = (): ListCategoryButtonProps => {
hasAThematicSearch.includes(facetFilter) ? 'ThematicSearch' : 'SearchResults',
{
offerCategories: [facetFilter],
isFullyDigitalOffersCategory: (data && isOnlyOnline(data, facetFilter)) || undefined,
isFullyDigitalOffersCategory: data && isOnlyOnline(data, facetFilter),
searchId: uuidv4(),
}
)
Expand Down

0 comments on commit ec8ec58

Please sign in to comment.