tods-competition-factory 0.78.0 → 0.79.0

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.
@@ -249,7 +249,7 @@ const matchUpFormatCode = {
249
249
  };
250
250
 
251
251
  function factoryVersion() {
252
- return '0.78.0';
252
+ return '0.79.0';
253
253
  }
254
254
 
255
255
  const FORMAT_STANDARD = 'SET3-S:6/TB7'; // Best of 3 Tiebreak Sets to 6
@@ -22133,8 +22133,8 @@ function addParticipant$1({
22133
22133
  }
22134
22134
 
22135
22135
  const existingPairParticipants = tournamentParticipants.filter(participant => participant.participantType === PAIR$1).map(participant => ({
22136
- participant,
22137
- individualParticipantIds: participant.individualParticipantIds
22136
+ individualParticipantIds: participant.individualParticipantIds,
22137
+ participant
22138
22138
  })); // determine whether a PAIR participant already exists
22139
22139
 
22140
22140
  const existingPairParticipant = participant.participantType === PAIR$1 && existingPairParticipants.find(existingPairParticipant => intersection(existingPairParticipant.individualParticipantIds, participant.individualParticipantIds).length === 2);
@@ -22171,8 +22171,8 @@ function addParticipant$1({
22171
22171
  } else if ([TEAM$1, GROUP].includes(participantType)) {
22172
22172
  if (!individualParticipantIds) participant.individualParticipantIds = [];
22173
22173
 
22174
- if (individualParticipantIds.length) {
22175
- for (const individualParticipantId of individualParticipantIds) {
22174
+ if (participant.individualParticipantIds.length) {
22175
+ for (const individualParticipantId of participant.individualParticipantIds) {
22176
22176
  if (typeof individualParticipantId !== 'string') {
22177
22177
  return {
22178
22178
  error: INVALID_VALUES,