From 45ef57815cd400030790a7243d05d5d34a6ce18d Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Tue, 19 Sep 2023 09:46:17 +0200 Subject: [PATCH] fix: run prettier --- src/libs/OptionsListUtils.js | 2 +- src/libs/SidebarUtils.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {