diff --git a/web/src/components/ServicesSearchResults.astro b/web/src/components/ServicesSearchResults.astro index 0ac294f..d45c71c 100644 --- a/web/src/components/ServicesSearchResults.astro +++ b/web/src/components/ServicesSearchResults.astro @@ -22,7 +22,7 @@ type Props = HTMLAttributes<'div'> & { sortSeed?: string filters: ServicesFiltersObject includeScams: boolean - countIfIncludingCommunity: number | null + countCommunityOnly: number | null inlineIcons?: boolean } @@ -36,7 +36,7 @@ const { class: className, filters, includeScams, - countIfIncludingCommunity, + countCommunityOnly, inlineIcons, ...divProps } = Astro.props @@ -59,8 +59,6 @@ const urlIfIncludingCommunity = urlWithParams(Astro.url, { verificationStatusesByValue.COMMUNITY_CONTRIBUTED.slug, ]), }) - -const extraIfIncludingCommunity = Math.max(0, (countIfIncludingCommunity ?? 0) - (services?.length ?? 0)) ---
@@ -77,12 +75,12 @@ const extraIfIncludingCommunity = Math.max(0, (countIfIncludingCommunity ?? 0) - /> { - extraIfIncludingCommunity > 0 && ( + countCommunityOnly && ( <>