diff --git a/frontend/src/ttls/ttls.service.ts b/frontend/src/ttls/ttls.service.ts index 9a62c9f7..983f5c15 100644 --- a/frontend/src/ttls/ttls.service.ts +++ b/frontend/src/ttls/ttls.service.ts @@ -219,11 +219,11 @@ export class TTLSService { lastName: string; legalName: string; }): string { - return tenantAddr.legalName + return tenantAddr ? tenantAddr.legalName ? tenantAddr.legalName : [tenantAddr.firstName, tenantAddr.middleName, tenantAddr.lastName] .filter(Boolean) - .join(" "); + .join(" ") : ''; } // returns the individual name