Skip to content

Commit

Permalink
Show max projects on the UI only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
sembrestels committed Sep 24, 2024
1 parent 99ad803 commit e8c41e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/src/components/VotingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ const VotingCard = ({
<>
<div className="flex justify-between">
<h4 className="h-12 text-xl mb-6 text-accent">
Cast Your Vote ({votedProjects.length} / {maxVotedProjects}{" "}
projects)
Cast Your Vote{" "}
{projects.length > maxVotedProjects
? `(${votedProjects.length} / ${maxVotedProjects} projects)`
: ""}
</h4>
<div className="text-sm mt-2">
Used {totalVotes} / {votingPower}
Expand Down

0 comments on commit e8c41e9

Please sign in to comment.