Skip to content

Commit

Permalink
removed unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Aug 28, 2023
1 parent d1beb84 commit 5c73217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/admin/DynamicForm/FormRegister.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/DynamicForm/FormRegisterPartner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 5c73217

Please sign in to comment.