Default to slug when Full Name isn't set (#721)

When Full Name isn't set and a new team is created,
The part of the now drop-down add new event type (previously button)
that's supposed to be personal or non-team
appears as an empty div.
This commit makes it default to slug / username in such a case.
pull/720/head^2
Heaust Azure 2021-09-22 16:13:08 +05:30 committed by GitHub
parent a047177e72
commit 8eb3a31af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ const CreateNewEventDialog = ({ profiles, canAddEvents }: { profiles: Profile[];
size={6}
className="inline mr-2"
/>
{profile.name}
{profile.name ? profile.name : profile.slug}
</DropdownMenuItem>
))}
</DropdownMenuContent>