diff --git a/PadelClub/Views/Player/PlayerDetailView.swift b/PadelClub/Views/Player/PlayerDetailView.swift index 7a6ffa4..4da59fd 100644 --- a/PadelClub/Views/Player/PlayerDetailView.swift +++ b/PadelClub/Views/Player/PlayerDetailView.swift @@ -38,7 +38,7 @@ struct PlayerDetailView: View { Text("Source des informations") } - if tournament.enableOnlineRegistration || player.registeredOnline || player.hasPaidOnline() { + if tournament.enableOnlineRegistration || tournament.enableOnlinePayment || player.registeredOnline || player.hasPaidOnline() { Section { LabeledContent { Text(player.registeredOnline ? "Oui" : "Non") @@ -46,7 +46,7 @@ struct PlayerDetailView: View { Text("Inscription en ligne") } - if player.captain { + if player.captain && (player.hasPaidOnline() || tournament.enableOnlinePayment) { LabeledContent { Text(player.hasPaidOnline() ? "Oui" : "Non") } label: {