Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Aug 4, 2023
1 parent 0a6ce4e commit 3b7448e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand All @@ -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;
},
{},
),
Expand Down

0 comments on commit 3b7448e

Please sign in to comment.