diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index f2c6838c7877..be5e171b98fb 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -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); diff --git a/src/libs/SidebarUtils.js b/src/libs/SidebarUtils.js index 4e828fedf003..2c4133053b65 100644 --- a/src/libs/SidebarUtils.js +++ b/src/libs/SidebarUtils.js @@ -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) {