From f4525e3d32d40c118c5332c8edd9ce9dddcf90b1 Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 22 May 2025 23:07:55 +0000 Subject: [PATCH] Release 2025-05-22-SwZ1 --- web/src/components/ServicesSearchResults.astro | 18 ++++++++---------- web/src/pages/index.astro | 9 +++------ 2 files changed, 11 insertions(+), 16 deletions(-) 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 && ( <>