Skip to content

Commit

Permalink
add email domain to "shared with" labels
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Jul 16, 2024
1 parent 00dd643 commit 3ee1f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FormComponents/SharedUsersList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const SharedUsersList = ({ record, updateRecord, region }) => {
Object.keys(record.sharedWith || {}).forEach((userID) => {
const name = users[userID]?.userinfo?.displayName;
if (name) {
sharedWithDetails[userID] = { name };
sharedWithDetails[userID] = { name: `${name} (${users[userID]?.userinfo?.email.split("@").pop()})` };
}
});

Expand Down Expand Up @@ -112,7 +112,7 @@ const SharedUsersList = ({ record, updateRecord, region }) => {

const shareWithOptions = Object.entries(users)
.map(([userID, userInfo]) => ({
label: userInfo.userinfo?.displayName,
label: `${userInfo.userinfo?.displayName} (${userInfo.userinfo?.email.split("@").pop()})`,
userID,
}))
.filter((x) => x.label)
Expand Down

0 comments on commit 3ee1f19

Please sign in to comment.