sync2
Razmig Sarkissian 1 year ago
parent 89a70fbbba
commit 09d7852c87
  1. 2
      PadelClub/Data/Tournament.swift
  2. 2
      PadelClub/Views/GroupStage/GroupStageView.swift

@ -2010,7 +2010,7 @@ defer {
} }
func groupStageLoserBracketsInitialPlace() -> Int { func groupStageLoserBracketsInitialPlace() -> Int {
selectedSortedTeams().filter({ $0.qualified || $0.bracketPosition != nil }).count + 1 return teamCount - teamsPerGroupStage * groupStageCount + qualifiedPerGroupStage * groupStageCount + groupStageAdditionalQualified + 1
} }
// MARK: - // MARK: -

@ -197,7 +197,7 @@ struct GroupStageView: View {
} }
} }
.listRowView(isActive: team.qualified, color: .master) .listRowView(isActive: team.qualified, color: .master)
.listRowView(isActive: team.isHere(), color: .green, hideColorVariation: true) .listRowView(isActive: team.isHere() && groupStage.hasEnded() == false, color: .green, hideColorVariation: true)
} else { } else {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 0) {
Text("#\(index + 1)") Text("#\(index + 1)")

Loading…
Cancel
Save