1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: replace empty name for admin in project access

This commit is contained in:
Youssef 2022-02-23 23:37:23 +01:00
parent 6d2ea5ebc6
commit e5c5250961

View File

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