Skip to content

Commit

Permalink
Merge pull request #127 from bcgov/legalName-null-fix
Browse files Browse the repository at this point in the history
a function was missing a null check
  • Loading branch information
mgtennant authored Dec 1, 2023
2 parents a8fdc2c + f0809d8 commit 935c2b5
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 935c2b5

Please sign in to comment.