Skip to content

Commit

Permalink
changed (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondicker authored May 23, 2024
1 parent 3d3d1ee commit 8c7f35c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/web/src/components/Opportunity/Badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ const Badges: React.FC<BadgesProps> = ({ opportunity }) => {
// memo for spots left i.e participantLimit - participantCountTotal
const spotsLeft = useMemo(() => {
const participantLimit = opportunity?.participantLimit ?? 0;
const participantCountTotal = opportunity?.participantCountTotal ?? 0;
return Math.max(participantLimit - participantCountTotal, 0);
const participantCountVerificationCompleted =
opportunity?.participantCountVerificationCompleted ?? 0;
return Math.max(
participantLimit - participantCountVerificationCompleted,
0,
);
}, [opportunity]);

return (
Expand Down

0 comments on commit 8c7f35c

Please sign in to comment.