Skip to content

Commit

Permalink
fix wrong image shown in share section when creating a task in money …
Browse files Browse the repository at this point in the history
…request report
  • Loading branch information
StevenKKC committed Jul 3, 2023
1 parent c0ece67 commit 122c990
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 @@ -551,8 +551,9 @@ function getAssignee(details) {
* */
function getShareDestination(reportID, reports, personalDetails) {
const report = lodashGet(reports, `report_${reportID}`, {});
const personalDetail = personalDetails[0] || {};
return {
icons: ReportUtils.getIcons(report, personalDetails),
icons: ReportUtils.getIcons(report, personalDetails, UserUtils.getAvatar(personalDetail.avatar, personalDetail.accountID), true),
displayName: ReportUtils.getReportName(report),
subtitle: ReportUtils.getChatRoomSubtitle(report),
};
Expand Down

0 comments on commit 122c990

Please sign in to comment.