Skip to content

Commit

Permalink
reset method to undo selected options
Browse files Browse the repository at this point in the history
  • Loading branch information
gerouvi committed May 29, 2024
1 parent 4bd9176 commit 92a93f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/Process/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ export const Questions = () => {
border='1px solid black'
_hover={{ bgColor: '#f2f2f2' }}
isDisabled={!isAbleToVote}
onClick={() => {
reset()
election.questions.forEach((_, i) => setValue(i.toString(), ''))
}}
onClick={() => reset()}
mb={10}
ml='auto'
/>
Expand Down

1 comment on commit 92a93f2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.