Skip to content

Commit

Permalink
Clear error message before vote query. Fixes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaker committed Nov 25, 2021
1 parent 39b0f07 commit 81171d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function useProposal(contractAddress: string, proposalId: string) {
}, [walletAddress, signingClient, proposalId, timestamp])

const vote = async (vote: string) => {
setError('')
signingClient
?.execute(
walletAddress,
Expand Down

0 comments on commit 81171d8

Please sign in to comment.