diff --git a/apps/meteor/client/views/marketplace/hooks/useFilteredApps.ts b/apps/meteor/client/views/marketplace/hooks/useFilteredApps.ts index aba2e0365f13..c0e32dc972ca 100644 --- a/apps/meteor/client/views/marketplace/hooks/useFilteredApps.ts +++ b/apps/meteor/client/views/marketplace/hooks/useFilteredApps.ts @@ -49,8 +49,6 @@ export const useFilteredApps = ({ } const { apps } = appsData.value; - - let shouldShowSearchText = false; const fallback = (apps: App[]) => apps; const sortingMethods: Record App[]> = { @@ -96,8 +94,7 @@ export const useFilteredApps = ({ sortingMethods[sortingMethod], )(apps); - if (text) shouldShowSearchText = true; - + const shouldShowSearchText = !!text; const total = filtered.length; const offset = current > total ? 0 : current; const end = current + itemsPerPage;