Skip to content

Commit

Permalink
Merge pull request #30862 from Expensify/dangrous-fixworkspaceious
Browse files Browse the repository at this point in the history
Show displayName in IOU if the primary actor is a workspace

(cherry picked from commit 7bd51eb)
  • Loading branch information
puneetlath authored and OSBotify committed Nov 6, 2023
1 parent abee538 commit 7963581
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 7963581

Please sign in to comment.