diff --git a/src/pages/admin/DynamicForm/FormRegister.js b/src/pages/admin/DynamicForm/FormRegister.js index e6d623a2..981dd156 100644 --- a/src/pages/admin/DynamicForm/FormRegister.js +++ b/src/pages/admin/DynamicForm/FormRegister.js @@ -230,7 +230,7 @@ const FormRegister = (props) => { const [responseError, setResponseError] = useState( Array.from(Array(formData.questions.length)) ); // index of errors correspond to responses array (right above) - const [otherData, setOtherData] = useState({ + const [otherData] = useState({ }); useEffect(() => { diff --git a/src/pages/admin/DynamicForm/FormRegisterPartner.js b/src/pages/admin/DynamicForm/FormRegisterPartner.js index f038ee62..e31d2ed4 100644 --- a/src/pages/admin/DynamicForm/FormRegisterPartner.js +++ b/src/pages/admin/DynamicForm/FormRegisterPartner.js @@ -220,7 +220,7 @@ const FormRegisterPartner = (props) => { const [responseError, setResponseError] = useState( Array.from(Array(formData.questions.length)) ); // index of errors correspond to responses array (right above) - const [otherData, setOtherData] = useState({ + const [otherData] = useState({ }); useEffect(() => {