Skip to content

Commit e9d00fb

Browse files
Fatimahkpsherva
authored andcommitted
user: added username as fallback
1 parent 414f29b commit e9d00fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/elements/contrib/invenioRDM/users/UserListItemCompact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Item, Label } from "semantic-ui-react";
66
export class UserListItemCompact extends Component {
77
render() {
88
const { id, user, linkToDetailView } = this.props;
9-
const name = user.profile.full_name || user.profile.email || user.profile.username;
9+
const name = user.profile.full_name || user.username;
1010
return (
1111
<Item className="flex" key={id}>
1212
<Image src={user.links.avatar} avatar loadFallbackFirst />

0 commit comments

Comments
 (0)