mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Merge pull request #744 from Unleash/fix/empty-name-admin
fix: replace empty name for admin in project access
This commit is contained in:
commit
8583eb3926
@ -148,7 +148,7 @@ export const ProjectAccessAddUser = ({ roles }: IProjectAccessAddUserProps) => {
|
||||
|
||||
const getOptionLabel = (option: IProjectAccessUser) => {
|
||||
if (option) {
|
||||
return `${option.name || '(Empty name)'} <${
|
||||
return `${option.name || option.username || '(Empty name)'} <${
|
||||
option.email || option.username
|
||||
}>`;
|
||||
} else return '';
|
||||
|
Loading…
Reference in New Issue
Block a user