From 4e8ef7170ff7aa8ae98d35e848d26911e96d54ba Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Wed, 8 Jan 2025 15:13:59 +0100 Subject: [PATCH] fix: fix broken text (#733) --- src/components/pages/AllCollections.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/pages/AllCollections.tsx b/src/components/pages/AllCollections.tsx index 66558328..c68db681 100644 --- a/src/components/pages/AllCollections.tsx +++ b/src/components/pages/AllCollections.tsx @@ -79,12 +79,9 @@ const AllCollectionsContent = (): ReactNode => { const hitsNumber = collections?.totalHits ?? collections?.estimatedTotalHits; - let translationKey = isPublishedRoot + const translationKey = isPublishedRoot ? LIBRARY.SEARCH_PAGE_TITLE : LIBRARY.SEARCH_PAGE_TITLE_CONTENT; - if (hitsNumber && hitsNumber > 100) { - translationKey = LIBRARY.SEARCH_PAGE_TITLE_MORE_CONTENT; - } return (