Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ function WorkspaceMemberDetailsPage({personalDetails, policy, route}: WorkspaceM
openPolicyMemberProfilePage(policyID, accountID);
}, [policyID, accountID]);

const memberCards = workspaceCards ? Object.values(workspaceCards).filter((card) => card.accountID === accountID) : [];
// Filter out travel cards — they should not appear on the member profile page
// as they expose card-level controls and data not intended for workspace admin view.
const memberCards = workspaceCards
? Object.values(workspaceCards).filter((card) => card.accountID === accountID && card.nameValuePairs?.feedCountry !== CONST.TRAVEL.PROGRAM_TRAVEL_US)
: [];

const isApprover = isApproverUserAction(policy, memberLogin);
const isTechnicalContact = policy?.technicalContact === details?.login;
Expand Down
Loading