From 3b7448e2a607ddf36be4780d55ea932d6f733a2e Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 4 Aug 2023 11:25:24 +0200 Subject: [PATCH] rename --- src/libs/actions/Policy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index 213f36655bad..352523e829d5 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -379,7 +379,7 @@ function addMembersToWorkspace(invitedEmailsToAccountIDs, welcomeNote, policyID, // Remove the object, when it is a newly created account. value: _.reduce( accountIDs, - (memo, accountID) => { + (accountIDsWithClearedPendingAction, accountID) => { let value = null; const accountAlreadyExists = !_.isEmpty(allPersonalDetails[accountID]); @@ -388,9 +388,9 @@ function addMembersToWorkspace(invitedEmailsToAccountIDs, welcomeNote, policyID, } // eslint-disable-next-line no-param-reassign - memo[accountID] = value; + accountIDsWithClearedPendingAction[accountID] = value; - return memo; + return accountIDsWithClearedPendingAction; }, {}, ),