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.
This commit is contained in:
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

View file

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