tods-competition-factory 1.8.11 → 1.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9740,10 +9740,7 @@ function matchUpActions$2({
9740
9740
  }
9741
9741
  });
9742
9742
  }
9743
- if (
9744
- // isInComplete && // TODO: determine whether removal should be disallowed for completed matchUps => policy consideration?
9745
- existingParticipantIds?.length && (!scoreHasValue(matchUp) || side?.substitutions?.length)
9746
- ) {
9743
+ if (existingParticipantIds?.length && (!scoreHasValue(matchUp) || side?.substitutions?.length)) {
9747
9744
  validActions.push({
9748
9745
  method: REMOVE_TEAM_POSITION_METHOD,
9749
9746
  type: REMOVE_PARTICIPANT,
@@ -14198,7 +14195,7 @@ function positionActions$1(params) {
14198
14195
  structure,
14199
14196
  event
14200
14197
  }).appliedPolicies ?? {};
14201
- Object.assign(appliedPolicies, specifiedPolicyDefinitions || {});
14198
+ Object.assign(appliedPolicies, specifiedPolicyDefinitions ?? {});
14202
14199
  const {
14203
14200
  actionsPolicy: positionActionsPolicy,
14204
14201
  enabledStructures,
@@ -14355,7 +14352,7 @@ function positionActions$1(params) {
14355
14352
  });
14356
14353
  const { seedNumber, seedValue } = seedAssignments?.find(
14357
14354
  (assignment) => assignment.participantId === participantId
14358
- ) || {};
14355
+ ) ?? {};
14359
14356
  validActions.push({
14360
14357
  type: SEED_VALUE,
14361
14358
  method: SEED_VALUE_METHOD,
@@ -14381,7 +14378,7 @@ function positionActions$1(params) {
14381
14378
  });
14382
14379
  const { seedNumber } = seedAssignments?.find(
14383
14380
  (assignment) => assignment.participantId === participantId
14384
- ) || {};
14381
+ ) ?? {};
14385
14382
  validActions.push({
14386
14383
  method: REMOVE_SEED_METHOD,
14387
14384
  type: REMOVE_SEED,