We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1db36 commit 7f09a25Copy full SHA for 7f09a25
backend/src/services/memberService.ts
@@ -958,8 +958,11 @@ export default class MemberService extends LoggerBase {
958
} else if (key === 'contributions') {
959
// check secondary member has any contributions to extract from current member
960
if (member.contributions && Array.isArray(member.contributions)) {
961
+ const secondaryContributions = Array.isArray(secondaryBackup.contributions)
962
+ ? secondaryBackup.contributions
963
+ : []
964
member.contributions = member.contributions.filter(
- (c) => !(secondaryBackup.contributions || []).some((s) => s.id === c.id),
965
+ (c) => !secondaryContributions.some((s) => s.id === c.id),
966
)
967
}
968
} else if (
0 commit comments