Skip to content

Commit

Permalink
Update src/landscape/landscapeSlice.js
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Schreiber <[email protected]>
  • Loading branch information
josebui and paulschreiber authored Nov 7, 2023
1 parent 222ad14 commit 9c33be9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/landscape/landscapeSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Check failure on line 522 in src/landscape/landscapeSlice.js

View workflow job for this annotation

GitHub Actions / lint

Replace `·membership.email·===·email·?·valueGenerator(membership)·:·membership` with `⏎········membership.email·===·email·?·valueGenerator(membership)·:·membership⏎·····`
.filter(membership => membership),
state
);
Expand Down

0 comments on commit 9c33be9

Please sign in to comment.