Skip to content

Commit

Permalink
Merge pull request #14408 from bernhardoj/fix/14228
Browse files Browse the repository at this point in the history
fix iou preview display name
  • Loading branch information
robertjchen authored Jan 20, 2023
2 parents a87dbb1 + b98aa17 commit 8cd50c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ReportActionItem/IOUPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ const IOUPreview = (props) => {
// Pay button should only be visible to the manager of the report.
const isCurrentUserManager = managerEmail === sessionEmail;

const managerName = lodashGet(props.personalDetails, [managerEmail, 'firstName'], '')
|| Str.removeSMSDomain(managerEmail);
const ownerName = lodashGet(props.personalDetails, [ownerEmail, 'firstName'], '') || Str.removeSMSDomain(ownerEmail);
const managerName = ReportUtils.getDisplayNameForParticipant(managerEmail, true);
const ownerName = ReportUtils.getDisplayNameForParticipant(ownerEmail, true);
const managerAvatar = lodashGet(props.personalDetails, [managerEmail, 'avatar']) || ReportUtils.getDefaultAvatar(managerEmail);
const ownerAvatar = lodashGet(props.personalDetails, [ownerEmail, 'avatar']) || ReportUtils.getDefaultAvatar(ownerEmail);
const cachedTotal = props.iouReport.total && props.iouReport.currency
Expand Down

0 comments on commit 8cd50c8

Please sign in to comment.