Skip to content

Commit

Permalink
Merge pull request #22137 from StevenKKC/fixWrongImageShown
Browse files Browse the repository at this point in the history
fix wrong image shown in share section when creating a task in money request report
  • Loading branch information
bondydaa authored Jul 10, 2023
2 parents cc49692 + 52b716d commit 6b0c6df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import CONST from '../../CONST';
import DateUtils from '../DateUtils';
import * as UserUtils from '../UserUtils';
import * as ReportActionsUtils from '../ReportActionsUtils';
import * as Expensicons from '../../components/Icon/Expensicons';

let currentUserEmail;
let currentUserAccountID;
Expand Down Expand Up @@ -558,7 +559,7 @@ function getAssignee(details) {
function getShareDestination(reportID, reports, personalDetails) {
const report = lodashGet(reports, `report_${reportID}`, {});
return {
icons: ReportUtils.getIcons(report, personalDetails),
icons: ReportUtils.getIcons(report, personalDetails, Expensicons.FallbackAvatar, ReportUtils.isIOUReport(report)),
displayName: ReportUtils.getReportName(report),
subtitle: ReportUtils.getChatRoomSubtitle(report),
};
Expand Down

0 comments on commit 6b0c6df

Please sign in to comment.