Skip to content

Commit

Permalink
fix: fix broken text (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Jan 8, 2025
1 parent 64916c7 commit 4e8ef71
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/pages/AllCollections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<MainWrapper>
Expand Down

0 comments on commit 4e8ef71

Please sign in to comment.