Skip to content

Commit

Permalink
Update src/pages/home/report/ReportActionItemSingle.js
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Davies <[email protected]>
  • Loading branch information
hungvu193 and jjcoffee authored Sep 25, 2023
1 parent dfeabc8 commit 67ed516
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 @@ -114,7 +114,7 @@ function ReportActionItemSingle(props) {
let secondaryAvatar = {};
const primaryDisplayName = displayName;
if (displayAllActors) {
// When we merge IOUs into one, if ownerAccountID is also actorAccountID, we should use managerID instead to prevent duplicate information.
// 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;
const secondaryUserDetails = props.personalDetailsList[secondaryAccountId] || {};
const secondaryDisplayName = lodashGet(secondaryUserDetails, 'displayName', '');
Expand Down

0 comments on commit 67ed516

Please sign in to comment.