Skip to content

Commit

Permalink
UPDATE: use effect logic for legal basis
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Dec 2, 2024
1 parent 6c73ab3 commit 82e7cb2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const FieldLegalBasis = (props: TFieldLegalBasisProps) => {
useEffect(() => {
if (formikBag.values.legalBases.length == 0 && props.openArt6OnEmpty) {
formikBag.setFieldValue('legalBasesOpen', true)
} else {
formikBag.setFieldValue('legalBasesOpen', false)
}
}, [])

Expand Down

0 comments on commit 82e7cb2

Please sign in to comment.