tods-competition-factory 1.8.27 → 1.8.29

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.
@@ -1496,9 +1496,9 @@ function genderValidityCheck({
1496
1496
  stack
1497
1497
  });
1498
1498
  }
1499
- if (matchUpType === TypeEnum.Singles && referenceGender === MIXED)
1499
+ if (referenceGender === MIXED && (gender !== MIXED || matchUpType === TypeEnum.Singles))
1500
1500
  return decorateResult({
1501
- info: "matchUpType SINGLES is invalid for gender MIXED",
1501
+ info: "MIXED events can only contain MIXED doubles collections",
1502
1502
  result: { error: INVALID_GENDER, valid: false },
1503
1503
  stack
1504
1504
  });