Skip to content

Commit

Permalink
Disable downvote if numOfVotes is zero (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag authored Apr 30, 2024
1 parent 0e567ab commit db7fa6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/berlin/src/components/option-card/OptionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function OptionCard({ option, numOfVotes, onVote, onUnvote }: OptionCardProps) {
onClick={onUnvote}
$width={16}
$height={16}
disabled={numOfVotes === 0}
/>
</FlexColumn>
<Body>{numOfVotes}</Body>
Expand Down

0 comments on commit db7fa6e

Please sign in to comment.