Skip to content

Commit

Permalink
Merge pull request #109 from bcgov/ticdi-45-update
Browse files Browse the repository at this point in the history
TICDI-45 - put addrLines on one line
  • Loading branch information
barrfalk authored Nov 1, 2023
2 parents 6495541 + e75bb77 commit c7fc043
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ export function nfrAddressBuilder(tenantAddr: any[]): string {
const address = parts.join(" ");

formattedAddress.push(name);
if (addrLine1) formattedAddress.push(addrLine1);
if (addrLine2) formattedAddress.push(addrLine2);
if (addrLine3) formattedAddress.push(addrLine3);
let addressLines = [];
if (addrLine1) addressLines.push(addrLine1);
if (addrLine2) addressLines.push(addrLine2);
if (addrLine3) addressLines.push(addrLine3);
let joinedAddressLines = addressLines.join(', ');
formattedAddress.push(joinedAddressLines);
formattedAddress.push(address);
formattedAddresses.push(formattedAddress.join("\n"));
}
Expand Down

0 comments on commit c7fc043

Please sign in to comment.