Skip to content

Commit

Permalink
Added missing validation for casting vote (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freshenext authored Aug 12, 2024
1 parent 00f3f8a commit dfb95d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/proposals/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const PageWithProposal = (proposal: PageWithProposal) => {
onQueueProposal,
} = useVoteOnProposal(proposalId)

const cannotCastVote = !isProposalActive || didUserVoteAlready || !canCreateProposal
const cannotCastVote = !isProposalActive || didUserVoteAlready || !doesUserHasEnoughThreshold

const handleVoting = async (vote: Vote) => {
try {
Expand Down

0 comments on commit dfb95d7

Please sign in to comment.