From 23d16ea1f1d77d18adb136450a6081b3721e50ff Mon Sep 17 00:00:00 2001 From: Yuwen Memon Date: Fri, 30 Jun 2023 16:27:23 -0700 Subject: [PATCH] Do not group actions if their delegate accountID does not match --- src/libs/ReportActionsUtils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index e3ddff17c69a..21969e4d67e5 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -248,6 +248,11 @@ function isConsecutiveActionMadeByPreviousActor(reportActions, actionIndex) { return false; } + // Do not group if the delegate account ID is different + if (previousAction.delegateAccountID !== currentAction.delegateAccountID) { + return false; + } + return currentAction.actorEmail === previousAction.actorEmail; }