1
0
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:
Youssef Khedher 2022-03-01 16:33:23 +01:00 committed by GitHub
commit 8583eb3926

View File

@ -148,7 +148,7 @@ export const ProjectAccessAddUser = ({ roles }: IProjectAccessAddUserProps) => {
const getOptionLabel = (option: IProjectAccessUser) => { const getOptionLabel = (option: IProjectAccessUser) => {
if (option) { if (option) {
return `${option.name || '(Empty name)'} <${ return `${option.name || option.username || '(Empty name)'} <${
option.email || option.username option.email || option.username
}>`; }>`;
} else return ''; } else return '';