From 5c7321702f91b0f8a53bcffb222081177fd1c1db Mon Sep 17 00:00:00 2001 From: dennis Date: Sun, 27 Aug 2023 17:12:25 -0700 Subject: [PATCH] removed unused vars --- src/pages/admin/DynamicForm/FormRegister.js | 2 +- src/pages/admin/DynamicForm/FormRegisterPartner.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(() => {