review fixes

This commit is contained in:
matthewswspence 2025-03-26 15:03:12 -05:00
parent 926aefbd05
commit cb75ec84c3
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
11 changed files with 112 additions and 87 deletions

View file

@ -625,6 +625,11 @@ class PortfolioAdditionalDetails(DomainRequestWizard):
2: FEBAnythingElseYesNoForm
3: PortfolioAnythingElseForm
"""
if not self.requires_feb_questions():
for i in range(3):
forms[i].mark_form_for_deletion()
# If FEB questions aren't required, validate only the anything else form
return forms[3].is_valid()
eop_forms_valid = True
if not forms[0].is_valid():
# If the user isn't working with EOP, don't validate the EOP contact form