From f0809d849132adecbfb8a3c7138ca47ed5fb71a9 Mon Sep 17 00:00:00 2001 From: mgtennant <100305096+mgtennant@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:24:24 -0800 Subject: [PATCH] a function was missing a null check --- frontend/src/ttls/ttls.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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