tods-competition-factory 1.8.28 → 1.8.30

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.
package/dist/index.mjs CHANGED
@@ -2404,7 +2404,7 @@ const matchUpFormatCode = {
2404
2404
  };
2405
2405
 
2406
2406
  function factoryVersion() {
2407
- return "1.8.28";
2407
+ return "1.8.30";
2408
2408
  }
2409
2409
 
2410
2410
  function getObjectTieFormat(obj) {
@@ -2623,7 +2623,7 @@ function genderValidityCheck({
2623
2623
  gender
2624
2624
  }) {
2625
2625
  const stack = "genderValidityCheck";
2626
- if (referenceGender && gender && [GenderEnum.Male, GenderEnum.Female].includes(referenceGender) && [GenderEnum.Male, GenderEnum.Female].includes(gender)) {
2626
+ if (referenceGender && gender && [GenderEnum.Male, GenderEnum.Female].includes(referenceGender)) {
2627
2627
  const valid = gender === referenceGender;
2628
2628
  return valid ? { valid: true } : decorateResult({
2629
2629
  result: { valid: false, error: INVALID_GENDER },
@@ -55048,16 +55048,17 @@ function getParticipantStats({
55048
55048
  };
55049
55049
  if (teamParticipantId) {
55050
55050
  const processForTeam = !opponentParticipantId || sides.every((side) => {
55051
- side.participant && (getCompetitorIds({
55052
- side,
55053
- individualParticipantIds: teamMap.get(teamParticipantId)
55051
+ return side.participant && (getCompetitorIds({
55052
+ individualParticipantIds: teamMap.get(teamParticipantId),
55053
+ side
55054
55054
  }) || getCompetitorIds({
55055
- side,
55056
- individualParticipantIds: teamMap.get(opponentParticipantId)
55055
+ individualParticipantIds: teamMap.get(opponentParticipantId),
55056
+ side
55057
55057
  }));
55058
55058
  });
55059
- if (processForTeam)
55059
+ if (processForTeam) {
55060
55060
  processSides(teamParticipantId, teamMap.get(teamParticipantId));
55061
+ }
55061
55062
  } else {
55062
55063
  for (const [thisTeamId, individualParticipantIds] of teamMap) {
55063
55064
  processSides(thisTeamId, individualParticipantIds);