diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx b/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx index 475f3a1737a..5b19d4cf57d 100644 --- a/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx +++ b/server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.tsx @@ -185,14 +185,13 @@ interface ValueProps { export function UsersSelectSearchValue({ children, value }: ValueProps) { return ( <div className="Select-value" title={value ? value.name : ''}> - {value && - value.login && ( - <div className="Select-value-label"> - <Avatar hash={value.avatar} name={value.name} size={AVATAR_SIZE} /> - <strong className="spacer-left">{children}</strong> - <span className="note little-spacer-left">{value.login}</span> - </div> - )} + {value && value.login && ( + <div className="Select-value-label"> + <Avatar hash={value.avatar} name={value.name} size={AVATAR_SIZE} /> + <strong className="spacer-left">{children}</strong> + <span className="note little-spacer-left">{value.login}</span> + </div> + )} </div> ); } |