Skip to content

Commit

Permalink
clean addresses error every time we add an address (#318)
Browse files Browse the repository at this point in the history
closes #316
  • Loading branch information
gerouvi authored Oct 9, 2023
1 parent 0532b26 commit 1d3e863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ProcessCreate/StepForm/CensusWeb3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const StepFormCensusWeb3 = () => {
const addresses = methods.watch('addresses')

useEffect(() => {
methods.clearErrors('addresses')
setForm({ ...form, addresses })
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [addresses])
Expand Down

2 comments on commit 1d3e863

@github-actions
Copy link

Choose a reason for hiding this comment

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

@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.