From eba01f47c0f29ff59a9ae884bc1296097889fb82 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Mon, 25 Nov 2024 17:00:47 +0300 Subject: [PATCH] fix lint --- src/libs/ReportUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 3052df4b88f2..9d3e62807f93 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -7825,14 +7825,14 @@ function shouldDisableThread(reportAction: OnyxInputOrEntry, repor const isReportPreviewAction = ReportActionsUtils.isReportPreviewAction(reportAction); const isIOUAction = ReportActionsUtils.isMoneyRequestAction(reportAction); const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction) || ReportActionsUtils.isActionableTrackExpense(reportAction); - const isArchivedReport = isArchivedNonExpenseReport(getReportOrDraftReport(reportID), getReportNameValuePairs(reportID)); + const isArchived = isArchivedNonExpenseReport(getReportOrDraftReport(reportID), getReportNameValuePairs(reportID)); const isActionDisabled = CONST.REPORT.ACTIONS.THREAD_DISABLED.some((action: string) => action === reportAction?.actionName); return ( isActionDisabled || isSplitBillAction || (isDeletedAction && !reportAction?.childVisibleActionCount) || - (isArchivedReport && !reportAction?.childVisibleActionCount) || + (isArchived && !reportAction?.childVisibleActionCount) || (isWhisperAction && !isReportPreviewAction && !isIOUAction) || isThreadReportParentAction );