debian-mirror-gitlab/app/assets/javascripts/invite_members/utils/member_utils.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
181 B
JavaScript
Raw Normal View History

2022-08-13 15:12:31 +05:30
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;
}