From ec8ec58768986f2d547f2b1e0794438dd8e8491c Mon Sep 17 00:00:00 2001 From: NolwenMajorFrances <144016890+nmajorfrances-pass@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:53:00 +0100 Subject: [PATCH] (PC-33718) refactor(useSortedSearchCategories): simplify --- .../useSortedSearchCategories/useSortedSearchCategories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/search/helpers/useSortedSearchCategories/useSortedSearchCategories.ts b/src/features/search/helpers/useSortedSearchCategories/useSortedSearchCategories.ts index aa5cc12dde5..f9788cf215c 100644 --- a/src/features/search/helpers/useSortedSearchCategories/useSortedSearchCategories.ts +++ b/src/features/search/helpers/useSortedSearchCategories/useSortedSearchCategories.ts @@ -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(), } )