Skip to content

Commit

Permalink
UI: Update user.component.html to handle "null" cases (OpenEMS#2527)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0w3y authored Mar 4, 2024
1 parent 4267c23 commit 7da815f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Menu.name
</ion-label>
<ion-label>
{{ this.form?.model ? (this.form?.model?.firstname + ' ' + this.form?.model?.lastname) : user.name }}
{{ this.form?.model ? ((this.form?.model?.firstname ?? '') + ' ' + (this.form?.model?.lastname ?? '')).trim() : user.name }}
<!-- <ion-icon style="cursor: pointer;" color="primary" name="create-outline">
</ion-icon> -->
</ion-label>
Expand Down

0 comments on commit 7da815f

Please sign in to comment.