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:
parent
a047177e72
commit
8eb3a31af4
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue