tods-competition-factory 0.83.3 → 0.84.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.83.3';
252
+ return '0.84.0';
253
253
  }
254
254
 
255
255
  const FORMAT_STANDARD = 'SET3-S:6/TB7'; // Best of 3 Tiebreak Sets to 6
@@ -43196,8 +43196,8 @@ function checkValidEntries({
43196
43196
  const enteredParticipants = participants.filter(participant => enteredParticipantIds.includes(participant.participantId));
43197
43197
  const invalidEntries = enteredParticipants.filter(participant => {
43198
43198
  const entryStatus = entryStatusMap[participant.participantId];
43199
- const unpairedDoublesParticipant = eventType === DOUBLES$1 && participant.participantType === INDIVIDUAL$1 && (isUngrouped(entryStatus) || entryStatus === WITHDRAWN);
43200
- const mismatch = participant.participantType !== participantType && !unpairedDoublesParticipant; // TODO: implement gender checking for teams & pairs
43199
+ const ungroupedParticipant = [DOUBLES$1, TEAM$3].includes(eventType) && participant.participantType === INDIVIDUAL$1 && (isUngrouped(entryStatus) || entryStatus === WITHDRAWN);
43200
+ const mismatch = participant.participantType !== participantType && !ungroupedParticipant; // TODO: implement gender checking for teams & pairs
43201
43201
 
43202
43202
  const wrongGender = !ignoreGender && eventType === INDIVIDUAL$1 && [MALE, FEMALE].includes(eventGender) && participant.sex !== eventGender;
43203
43203
  return mismatch || wrongGender;