Skip to content

Commit

Permalink
a function was missing a null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Dec 1, 2023
1 parent a8fdc2c commit f0809d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/ttls/ttls.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0809d8

Please sign in to comment.