From 1d3e86336f15d136a1005135af820755828d0815 Mon Sep 17 00:00:00 2001 From: gerouvi <78085338+gerouvi@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:35:22 +0200 Subject: [PATCH] clean addresses error every time we add an address (#318) closes #316 --- src/components/ProcessCreate/StepForm/CensusWeb3.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ProcessCreate/StepForm/CensusWeb3.tsx b/src/components/ProcessCreate/StepForm/CensusWeb3.tsx index f680cb9d..d3a3dd11 100644 --- a/src/components/ProcessCreate/StepForm/CensusWeb3.tsx +++ b/src/components/ProcessCreate/StepForm/CensusWeb3.tsx @@ -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])