diff --git a/apps/web/src/app/vault/organization-badge/organization-name-badge.component.ts b/apps/web/src/app/vault/organization-badge/organization-name-badge.component.ts index e423a2cb8d..33c659be55 100644 --- a/apps/web/src/app/vault/organization-badge/organization-name-badge.component.ts +++ b/apps/web/src/app/vault/organization-badge/organization-name-badge.component.ts @@ -33,7 +33,8 @@ export class OrganizationNameBadgeComponent implements OnInit { if (this.isMe) { this.color = await this.avatarService.loadColorFromState(); if (this.color == null) { - const userName = await this.tokenService.getName(); + const userName = + (await this.tokenService.getName()) ?? (await this.tokenService.getEmail()); this.color = Utils.stringToColor(userName.toUpperCase()); } } else {