Skip to content

Commit

Permalink
check log alreadyVoted in polls
Browse files Browse the repository at this point in the history
  • Loading branch information
ebedoise committed Aug 1, 2024
1 parent 40b2e19 commit 4075b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/poll/src/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const Choices = () => {
};

const handleVote = async (choiceId: string) => {
console.log('alreadyVoted: ', alreadyVoted);
if (alreadyVoted) {
toast({
title: 'You have already voted',
Expand Down

0 comments on commit 4075b84

Please sign in to comment.