From c00a76a1cc1f40dc533406761d06c263202a9da9 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 18 Jan 2024 06:33:41 +0000 Subject: [PATCH] fix(nc-gui): PR review changes #2131 --- packages/nc-gui/components/general/UserIcon.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/general/UserIcon.vue b/packages/nc-gui/components/general/UserIcon.vue index 8685ab93c8..ae50983cf7 100644 --- a/packages/nc-gui/components/general/UserIcon.vue +++ b/packages/nc-gui/components/general/UserIcon.vue @@ -8,15 +8,15 @@ const props = withDefaults( email?: string }>(), { + size: 'medium', + name: '', email: '', }, ) -const size = computed(() => props.size || 'medium') +const { size, email } = toRefs(props) -const displayName = computed(() => props.name?.trim() ?? '') - -const email = computed(() => props?.email ?? '') +const displayName = computed(() => props.name.trim()) const backgroundColor = computed(() => { // in comments we need to generate user icon from email