diff --git a/apps/app/src/components-v2/layout/WorkspaceSwitcher.vue b/apps/app/src/components-v2/layout/WorkspaceSwitcher.vue index a5831dfe..c69cefd3 100644 --- a/apps/app/src/components-v2/layout/WorkspaceSwitcher.vue +++ b/apps/app/src/components-v2/layout/WorkspaceSwitcher.vue @@ -52,9 +52,9 @@ function buildDisplay(org: Organisation): WorkspaceDisplay { const words = org.name.trim().split(/\s+/) const initials - = words.length >= 2 + = (words.length >= 2 ? (words[0][0] + words[1][0]).toUpperCase() - : org.name.slice(0, 2).toUpperCase() + : org.name.slice(0, 2).toUpperCase()) || '?' return { id: org.id, @@ -123,7 +123,7 @@ function selectOrg(ws: WorkspaceDisplay): void { {{ current.initials }} @@ -167,19 +167,21 @@ function selectOrg(ws: WorkspaceDisplay): void {
-
+
+
@@ -231,26 +233,20 @@ function selectOrg(ws: WorkspaceDisplay): void {