diff --git a/apps/frontend/src/components/Process/common/FieldLegalBasis.tsx b/apps/frontend/src/components/Process/common/FieldLegalBasis.tsx index 95298ca14..918d60fe6 100644 --- a/apps/frontend/src/components/Process/common/FieldLegalBasis.tsx +++ b/apps/frontend/src/components/Process/common/FieldLegalBasis.tsx @@ -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) } }, [])