From 9c33be91c2caaf4fca6cf52bc5faf4b0ec038d0e Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Tue, 7 Nov 2023 12:09:51 -0500 Subject: [PATCH] Update src/landscape/landscapeSlice.js Co-authored-by: Paul Schreiber --- src/landscape/landscapeSlice.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/landscape/landscapeSlice.js b/src/landscape/landscapeSlice.js index 30ac1edd92..7ae7d2f0d1 100644 --- a/src/landscape/landscapeSlice.js +++ b/src/landscape/landscapeSlice.js @@ -519,12 +519,7 @@ const updateMemberItem = (state, email, valueGenerator) => { return _.set( 'members.data.membershipsInfo.membershipsSample', state.members.data.membershipsInfo.membershipsSample - .map(membership => { - if (membership.email === email) { - return valueGenerator(membership); - } - return membership; - }) + .map(membership => membership.email === email ? valueGenerator(membership) : membership ) .filter(membership => membership), state );