Skip to content

Commit

Permalink
Fix bug with both org name and suborg
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Oct 30, 2024
1 parent d0aff60 commit b09e0ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/registrar/forms/domain_request_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ def form_is_checked(self):
Determines the initial checked state of the form based on the domain_request's attributes.
"""

if (
if self.domain_request.is_suborganization():
return True
elif (
self.domain_request.portfolio
and self.domain_request.organization_name == self.domain_request.portfolio.organization_name
):
return False
elif self.domain_request.is_suborganization():
return True
else:
return None

Expand Down

0 comments on commit b09e0ca

Please sign in to comment.