tods-competition-factory 1.7.2 → 1.7.3

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.
@@ -3974,7 +3974,7 @@ function getRoundMatchUps({
3974
3974
  roundProfile[roundNumber].finishingRound = finishingRoundMap[roundNumber]?.finishingRound;
3975
3975
  roundProfile[roundNumber].roundName = finishingRoundMap[roundNumber]?.roundName;
3976
3976
  roundProfile[roundNumber].abbreviatedRoundName = finishingRoundMap[roundNumber]?.abbreviatedRoundName;
3977
- roundProfile[roundNumber].finishingPositionRange = roundMatchUps[roundNumber][0].finishingPositionRange;
3977
+ roundProfile[roundNumber].finishingPositionRange = roundMatchUps[roundNumber]?.[0]?.finishingPositionRange;
3978
3978
  if (roundNumber === 1 || !roundProfile[roundNumber - 1]) {
3979
3979
  const orderedDrawPositions = currentRoundDrawPositions.sort(numericSort);
3980
3980
  const pairedDrawPositions = chunkArray(orderedDrawPositions, 2);