tods-competition-factory 1.6.12 → 1.6.13

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.
@@ -3867,7 +3867,7 @@ function validMatchUp(matchUp) {
3867
3867
  const { matchUpId, drawPositions } = matchUp;
3868
3868
  const validMatchUpId = typeof matchUpId === "string";
3869
3869
  const validDrawPositions = !drawPositions || Array.isArray(drawPositions) && drawPositions.length <= 2 && drawPositions.every(
3870
- (dp) => isConvertableInteger(dp) || dp === void 0
3870
+ (dp) => isConvertableInteger(dp) || dp === void 0 || dp === null
3871
3871
  );
3872
3872
  return validMatchUpId && validDrawPositions;
3873
3873
  }
@@ -6280,9 +6280,10 @@ function getSourceDrawPositionRanges({
6280
6280
  structureId: sourceStructureId,
6281
6281
  matchUpsMap
6282
6282
  });
6283
- const { roundProfile } = getRoundMatchUps({
6283
+ const roundMatchUpsResult = getRoundMatchUps({
6284
6284
  matchUps: structureMatchUps2
6285
6285
  });
6286
+ const roundProfile = roundMatchUpsResult.roundProfile;
6286
6287
  return { [sourceStructureId]: roundProfile };
6287
6288
  })
6288
6289
  );