Skip to content

Commit

Permalink
fix: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Sep 19, 2023
1 parent 2421b63 commit 45ef578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ function getLastMessageTextForReport(report) {
} else if (ReportActionUtils.isReportPreviewAction(lastReportAction)) {
const iouReport = ReportUtils.getReport(ReportActionUtils.getIOUReportIDFromReportActionPreview(lastReportAction));
const isPolicyAdmin = PolicyUtils.isPolicyAdmin(ReportUtils.getPolicy(report.policyID));
const lastActorDisplayName = ReportUtils.isSettled(iouReport.reportID) && !isPolicyAdmin ? `${ReportUtils.getPolicyName(report)} ` : ''
const lastActorDisplayName = ReportUtils.isSettled(iouReport.reportID) && !isPolicyAdmin ? `${ReportUtils.getPolicyName(report)} ` : '';
lastMessageTextFromReport = lastActorDisplayName + ReportUtils.getReportPreviewMessage(iouReport, lastReportAction);
} else if (ReportActionUtils.isModifiedExpenseAction(lastReportAction)) {
lastMessageTextFromReport = ReportUtils.getModifiedExpenseMessage(lastReportAction);
Expand Down
3 changes: 2 additions & 1 deletion src/libs/SidebarUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ function getOptionData(report, reportActions, personalDetails, preferredLocale,
}
: null;
}
const lastActorDisplayName = hasMultipleParticipants && lastActorDetails && lastActorDetails.accountID && Number(lastActorDetails.accountID) !== currentUserAccountID ? lastActorDetails.displayName : '';
const lastActorDisplayName =
hasMultipleParticipants && lastActorDetails && lastActorDetails.accountID && Number(lastActorDetails.accountID) !== currentUserAccountID ? lastActorDetails.displayName : '';
let lastMessageText = lastMessageTextFromReport;

if (result.isArchivedRoom) {
Expand Down

0 comments on commit 45ef578

Please sign in to comment.