From b2cd9a2dfb8aedb4246dabadee41d00cf014f7a5 Mon Sep 17 00:00:00 2001 From: Tsaqif Date: Sun, 29 Oct 2023 07:21:01 +0700 Subject: [PATCH] Fix comment of the grouping Signed-off-by: Tsaqif --- src/libs/ReportActionsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index e07d74cf352e..bbf11b949aae 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -261,7 +261,7 @@ function isConsecutiveActionMadeByPreviousActor(reportActions: ReportAction[] | return false; } - // Do not group if report preview is the type of current or previous report action, but not both + // Do not group if one of previous / current action is report preview and another one is not report preview if ((isReportPreviewAction(previousAction) && !isReportPreviewAction(currentAction)) || (isReportPreviewAction(currentAction) && !isReportPreviewAction(previousAction))) { return false; }