diff --git a/src/components/RoleMembers.vue b/src/components/RoleMembers.vue
index dcb505ae7..550f068c7 100644
--- a/src/components/RoleMembers.vue
+++ b/src/components/RoleMembers.vue
@@ -4,7 +4,7 @@
- {{ member.displayName || firstPartOfEmail(member.id) }}
+ {{ displayName(member) }}
@@ -33,8 +33,8 @@ export default {
},
methods: {
- firstPartOfEmail(email) {
- return email.replace(/@.*/, '');
+ displayName(member) {
+ return member.displayName || member.id?.replace(/@.*/, '') || '';
},
openProfileModal(profileId) {