Skip to content

Commit

Permalink
fix(cc-header-orga): trim orga name in case it starts with spaces
Browse files Browse the repository at this point in the history
Fixes #886
  • Loading branch information
florian-sanders-cc committed Dec 11, 2023
1 parent 727d2f9 commit cdd6b04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/cc-header-orga/cc-header-orga.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export class CcHeaderOrga extends LitElement {
_renderHeader ({ skeleton, name, avatar = null, cleverEnterprise = false, emergencyNumber = null }) {

const initials = skeleton ? '' : name
.trim()
.split(' ')
.slice(0, 2)
.map((a) => a[0].toUpperCase())
Expand Down

0 comments on commit cdd6b04

Please sign in to comment.