Skip to content

Commit

Permalink
personalDetails.login can be missing for new accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo-expensify committed Jun 20, 2023
1 parent 8ba2234 commit 98005e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function WorkspaceMembersPage(props) {
// We don't want to show guides as policy members unless the user is a guide. Some customers get confused when they
// see random people added to their policy, but guides having access to the policies help set them up.
if (policyOwner && currentUserLogin && !PolicyUtils.isExpensifyTeam(policyOwner) && !PolicyUtils.isExpensifyTeam(currentUserLogin)) {
data = _.reject(data, (member) => PolicyUtils.isExpensifyTeam(member.login));
data = _.reject(data, (member) => PolicyUtils.isExpensifyTeam(member.login || member.displayName));
}

_.each(data, (member) => {
Expand Down

0 comments on commit 98005e9

Please sign in to comment.