Merge pull request #365 from documenso/feat/avatar-fallback

feat: add avatar email fallback
This commit is contained in:
Lucas Smith
2023-09-13 21:51:42 +10:00
committed by GitHub
6 changed files with 26 additions and 22 deletions

View File

@ -1,6 +0,0 @@
export const initials = (text: string) =>
text
?.split(' ')
.map((name: string) => name.slice(0, 1).toUpperCase())
.slice(0, 2)
.join('') ?? 'UK';