diff --git a/src/components/LiveCounter.tsx b/src/components/LiveCounter.tsx index 8576bb2..a585994 100644 --- a/src/components/LiveCounter.tsx +++ b/src/components/LiveCounter.tsx @@ -17,7 +17,9 @@ const LiveCounter: React.FC = ({ onJoinWaitlist, onOpenLogin } }, [remainingSpots, totalSpots]); const isLive = remainingSpots > 0; - const percentageLeft = (remainingSpots / totalSpots) * 100; + const takenSpots = totalSpots - remainingSpots; + const percentageTaken = (takenSpots / totalSpots) * 100; + const displayPercentage = 100 - percentageTaken; return (
@@ -59,13 +61,13 @@ const LiveCounter: React.FC = ({ onJoinWaitlist, onOpenLogin }
Progress - {Math.round(percentageLeft)}% + {Math.floor(displayPercentage)}%