Skip to content

Commit

Permalink
Handle optional first and last names
Browse files Browse the repository at this point in the history
  • Loading branch information
caebr committed Nov 4, 2020
1 parent 481d02d commit eb1c296
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
/></ng-container>
<ng-container
*ngIf="
company.apprenticeshipManager?.Lastname &&
company.apprenticeshipManager?.Lastname ||
company.apprenticeshipManager?.Firstname
"
>
{{ company.apprenticeshipManager.Lastname }}
{{ company.apprenticeshipManager.Firstname }}<br />
{{ company.apprenticeshipManager.Lastname || '' }}
{{ company.apprenticeshipManager.Firstname || '' }}<br />
</ng-container>
<ng-container *ngIf="company.apprenticeshipManager?.AddressLine1"
>{{ company.apprenticeshipManager.AddressLine1 }}<br
Expand Down Expand Up @@ -49,10 +49,10 @@
{{ 'shared.profile.job-trainer' | translate }}:
<address>
<ng-container
*ngIf="company.jobTrainer.Lastname && company.jobTrainer.Firstname"
*ngIf="company.jobTrainer.Lastname || company.jobTrainer.Firstname"
>
{{ company.jobTrainer.Lastname }}
{{ company.jobTrainer.Firstname }}<br />
{{ company.jobTrainer.Lastname || '' }}
{{ company.jobTrainer.Firstname || '' }}<br />
</ng-container>
<ng-container *ngIf="company.jobTrainer.PhoneBusiness">
<a href="tel:{{ company.jobTrainer.PhoneBusiness }}"
Expand Down

0 comments on commit eb1c296

Please sign in to comment.