debian-mirror-gitlab/app/assets/javascripts/invite_members/utils/member_utils.js
2022-08-13 15:12:31 +05:30

4 lines
181 B
JavaScript

export function memberName(member) {
// user defined tokens(invites by email) will have email in `name` and will not contain `username`
return member.username || member.name;
}