|
|
|
|
@ -139,8 +139,12 @@ struct MatchDetailView: View { |
|
|
|
|
Section { |
|
|
|
|
RowButtonView("Saisir les résultats", systemImage: "list.clipboard") { |
|
|
|
|
do { |
|
|
|
|
// try self.tournament.payIfNecessary() |
|
|
|
|
scoreType = .edition |
|
|
|
|
if let tournament = self.match.currentTournament() { |
|
|
|
|
try tournament.payIfNecessary() |
|
|
|
|
scoreType = .edition |
|
|
|
|
} else { |
|
|
|
|
self.showSubscriptionView = true |
|
|
|
|
} |
|
|
|
|
} catch { |
|
|
|
|
self.showSubscriptionView = true |
|
|
|
|
} |
|
|
|
|
|