Skip to content
Snippets Groups Projects
Commit d0dcd5c1 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: ensure empty name can be easily detected

parent 2d04e628
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ export function usePersonName(user: MaybeRefOrGetter<SteeringUser>) {
const firstName = (_user?.firstName ?? '').trim()
const lastName = (_user.lastName ?? '').trim()
const username = _user.username.trim()
const name = [firstName, lastName].join(' ')
const name = [firstName, lastName].join(' ').trim()
const initials =
firstName && lastName
? [firstName[0], lastName[0]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment