Skip to content

Commit

Permalink
Don't show languages spoken text when list is empty
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
duncte123 committed Aug 4, 2021
1 parent fe281e3 commit ca1845d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/user/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="title">
<span class="flag-icon flag-icon-{{user.country.toLowerCase()}}" style="margin-right: 1px;"></span>
{{ 'country.' + user.country | translate }}
</small>
<p>{{'user.profile.speak' | translate}}
<p *ngIf="user.languagesSpoken.length">{{'user.profile.speak' | translate}}
<ng-template ngFor let-language let-i="index" [ngForOf]="user.languagesSpoken">
<small>{{'language.' + language | translate}}<span *ngIf="i + 1 < user.languagesSpoken.length">, </span></small>
</ng-template>
Expand Down

0 comments on commit ca1845d

Please sign in to comment.