From cf503ab6768b8c3cc6dbe3435fe3c7c268344c8f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 2 Apr 2025 15:46:04 -0500 Subject: [PATCH] Count total --- src/screens/Search/components/StarterPackCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screens/Search/components/StarterPackCard.tsx b/src/screens/Search/components/StarterPackCard.tsx index 8458d9ca71..9520dd5a73 100644 --- a/src/screens/Search/components/StarterPackCard.tsx +++ b/src/screens/Search/components/StarterPackCard.tsx @@ -132,6 +132,7 @@ export function AvatarStack({ const t = useTheme() const {gtPhone} = useBreakpoints() const moderationOpts = useModerationOpts() + const computedTotal = (total ?? numPending) - numPending const circlesCount = numPending + 1 // add total at end const widthPerc = 100 / circlesCount const [size, setSize] = React.useState(null) @@ -230,7 +231,7 @@ export function AvatarStack({ backgroundColor: t.atoms.text_contrast_low.color, }, ]}> - {total ? ( + {computedTotal > 0 ? ( - +{total} + +{computedTotal} ) : (