diff --git a/legal-api/src/legal_api/models/legal_entity.py b/legal-api/src/legal_api/models/legal_entity.py index d358262940..b0ffe37a3f 100644 --- a/legal-api/src/legal_api/models/legal_entity.py +++ b/legal-api/src/legal_api/models/legal_entity.py @@ -374,7 +374,9 @@ def alternate_names_json(self): "nameRegisteredDate": alternate_name.start_date.isoformat(), "nameStartDate": LegislationDatetime.format_as_legislation_date( alternate_name.business_start_date - ), + ) + if alternate_name.business_start_date + else None, "nameType": alternate_name.name_type.name, "operatingName": alternate_name.name, # will be removed in the future }