From: Jay Sitter Date: Sat, 17 Jun 2023 00:56:01 +0000 (-0400) Subject: fix: Re-add 'number of communities' to site sidebar X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=fe64edd2fc26ec46fa5512f7ee13923b2ca6fae9;p=lemmy-ui.git fix: Re-add 'number of communities' to site sidebar --- diff --git a/src/shared/components/common/badges.tsx b/src/shared/components/common/badges.tsx index 2024ad2..5639034 100644 --- a/src/shared/components/common/badges.tsx +++ b/src/shared/components/common/badges.tsx @@ -18,6 +18,12 @@ const isCommunityAggregates = ( return "subscribers" in counts; }; +const isSiteAggregates = ( + counts: CommunityAggregates | SiteAggregates +): counts is SiteAggregates => { + return "communities" in counts; +}; + export const Badges = ({ counts, community_view }: BadgesProps) => { return (