wording fix

paca_championship
Raz 1 year ago
parent ef20c838c4
commit 407d73a765
  1. 3
      PadelClub/Data/Round.swift
  2. 2
      PadelClub/Views/Match/MatchSetupView.swift

@ -119,8 +119,7 @@ final class Round: ModelObject, Storable {
func seed(_ team: TeamPosition, inMatchIndex matchIndex: Int) -> TeamRegistration? { func seed(_ team: TeamPosition, inMatchIndex matchIndex: Int) -> TeamRegistration? {
return self.tournamentStore.teamRegistrations.first(where: { return self.tournamentStore.teamRegistrations.first(where: {
$0.tournament == tournament $0.bracketPosition != nil
&& $0.bracketPosition != nil
&& ($0.bracketPosition! / 2) == matchIndex && ($0.bracketPosition! / 2) == matchIndex
&& ($0.bracketPosition! % 2) == team.rawValue && ($0.bracketPosition! % 2) == team.rawValue
}) })

@ -9,7 +9,7 @@ import SwiftUI
import LeStorage import LeStorage
struct MatchSetupView: View { struct MatchSetupView: View {
static let confirmationMessage = "Au moins une tête de série a été placée dans la branche de ce match dans les tours précédents. En plaçant une équipe sur ici, les équipes déjà placées dans la même branche seront retirées du tableau et devront être replacées." static let confirmationMessage = "Au moins une tête de série a été placée dans la branche de ce match dans les tours précédents. En plaçant une équipe ici, les équipes déjà placées dans la même branche seront retirées du tableau et devront être replacées."
@EnvironmentObject var dataStore: DataStore @EnvironmentObject var dataStore: DataStore

Loading…
Cancel
Save