浏览代码

fix(web): empty user initials (#2737)

Jason Rasmussen 2 年之前
父节点
当前提交
756f4e5986
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/src/lib/components/shared-components/user-avatar.svelte

+ 1 - 1
web/src/lib/components/shared-components/user-avatar.svelte

@@ -73,7 +73,7 @@
 			class:font-medium={!autoColor}
 			class:font-medium={!autoColor}
 			class:font-semibold={autoColor}
 			class:font-semibold={autoColor}
 		>
 		>
-			{(user.firstName[0] + user.lastName[0]).toUpperCase()}
+			{((user.firstName[0] || '') + (user.lastName[0] || '')).toUpperCase()}
 		</span>
 		</span>
 	{/if}
 	{/if}
 </figure>
 </figure>