Skip to content

Commit

Permalink
add comment for secondaryAccountId
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Sep 21, 2023
1 parent 8248196 commit dfeabc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItemSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +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.
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 dfeabc8

Please sign in to comment.