Skip to content

Commit

Permalink
fix: 🐛 submit button disable functionality on password change
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Spielmann committed Mar 23, 2021
1 parent 2ed5afd commit 51a1338
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/formAccordion/FormAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ export const FormAccordion = (props: FormAccordionProps) => {
} else {
props.handleFormAccordionData(null);
}
}, [isUsernameValid, isSelectedAgencyValid, username, agency]); // eslint-disable-line react-hooks/exhaustive-deps
}, [
isUsernameValid,
isSelectedAgencyValid,
isPasswordValid,
username,
agency,
password
]); // eslint-disable-line react-hooks/exhaustive-deps

useEffect(() => {
if (props.isUsernameAlreadyInUse) {
Expand Down

0 comments on commit 51a1338

Please sign in to comment.