(displayName: string | null)
| 3 | import { tc } from '@linen/utilities/tc'; |
| 4 | |
| 5 | export function username(displayName: string | null) { |
| 6 | if (!displayName) { |
| 7 | return null; |
| 8 | } |
| 9 | return displayName.toLowerCase().replace(/\s+/g, ''); |
| 10 | } |
| 11 | |
| 12 | export function serializeUser(user: users): SerializedUser { |
| 13 | return { |
no outgoing calls
no test coverage detected