Skip to content

Commit

Permalink
change defaultAvatar and isPayer parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenKKC committed Jul 10, 2023
1 parent 122c990 commit 52b716d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import DateUtils from '../DateUtils';
import * as UserUtils from '../UserUtils';
import * as PersonalDetailsUtils from '../PersonalDetailsUtils';
import * as ReportActionsUtils from '../ReportActionsUtils';
import * as Expensicons from '../../components/Icon/Expensicons';

/**
* Clears out the task info from the store
Expand Down Expand Up @@ -551,9 +552,8 @@ function getAssignee(details) {
* */
function getShareDestination(reportID, reports, personalDetails) {
const report = lodashGet(reports, `report_${reportID}`, {});
const personalDetail = personalDetails[0] || {};
return {
icons: ReportUtils.getIcons(report, personalDetails, UserUtils.getAvatar(personalDetail.avatar, personalDetail.accountID), true),
icons: ReportUtils.getIcons(report, personalDetails, Expensicons.FallbackAvatar, ReportUtils.isIOUReport(report)),
displayName: ReportUtils.getReportName(report),
subtitle: ReportUtils.getChatRoomSubtitle(report),
};
Expand Down

0 comments on commit 52b716d

Please sign in to comment.