fix wildcard bracket compute bug

sync2
Raz 1 year ago
parent c9b25227d7
commit d5ea4f5336
  1. 2
      PadelClub/Data/Tournament.swift

@ -859,7 +859,7 @@ defer {
let wcBracket = _teams.filter { $0.wildCardBracket }.sorted(using: _currentSelectionSorting, order: .ascending)
let groupStageSpots: Int = self.groupStageSpots()
var bracketSeeds: Int = min(teamCount, _completeTeams.count) - groupStageSpots - wcBracket.count
var bracketSeeds: Int = min(teamCount, _completeTeams.count) - groupStageSpots
var groupStageTeamCount: Int = groupStageSpots - wcGroupStage.count
if groupStageTeamCount < 0 { groupStageTeamCount = 0 }
if bracketSeeds < 0 { bracketSeeds = 0 }

Loading…
Cancel
Save