diff --git a/ui/src/app/user/user.component.html b/ui/src/app/user/user.component.html
index aa5eb66c724..d0999b213d9 100644
--- a/ui/src/app/user/user.component.html
+++ b/ui/src/app/user/user.component.html
@@ -17,7 +17,7 @@
Menu.name
- {{ 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 }}