From 756f4e59860ce25bdd7e1bc572f1846c8db341e1 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 12 Jun 2023 10:11:28 -0400 Subject: [PATCH] fix(web): empty user initials (#2737) --- web/src/lib/components/shared-components/user-avatar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/shared-components/user-avatar.svelte b/web/src/lib/components/shared-components/user-avatar.svelte index 93c3d54a94..bf6ff13824 100644 --- a/web/src/lib/components/shared-components/user-avatar.svelte +++ b/web/src/lib/components/shared-components/user-avatar.svelte @@ -73,7 +73,7 @@ class:font-medium={!autoColor} class:font-semibold={autoColor} > - {(user.firstName[0] + user.lastName[0]).toUpperCase()} + {((user.firstName[0] || '') + (user.lastName[0] || '')).toUpperCase()} {/if}