Skip to content

Commit

Permalink
Merge pull request Expensify#30862 from Expensify/dangrous-fixworkspa…
Browse files Browse the repository at this point in the history
…ceious

Show displayName in IOU if the primary actor is a workspace
  • Loading branch information
puneetlath authored Nov 3, 2023
2 parents 8545ef4 + 8e588ba commit 7bd51eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function ReportActionItemSingle(props) {

// If this is a report preview, display names and avatars of both people involved
let secondaryAvatar = {};
const primaryDisplayName = ReportUtils.getDisplayNameForParticipant(actorAccountID);
const primaryDisplayName = displayName;
if (displayAllActors) {
// The ownerAccountID and actorAccountID can be the same if the a user requests money back from the IOU's original creator, in that case we need to use managerID to avoid displaying the same user twice
const secondaryAccountId = props.iouReport.ownerAccountID === actorAccountID ? props.iouReport.managerID : props.iouReport.ownerAccountID;
Expand Down

0 comments on commit 7bd51eb

Please sign in to comment.