fix messaging online payment in playerdetail view

sync3
Raz 7 months ago
parent 2dd89faa2d
commit fae48947a6
  1. 4
      PadelClub/Views/Player/PlayerDetailView.swift

@ -38,7 +38,7 @@ struct PlayerDetailView: View {
Text("Source des informations") Text("Source des informations")
} }
if tournament.enableOnlineRegistration || player.registeredOnline || player.hasPaidOnline() { if tournament.enableOnlineRegistration || tournament.enableOnlinePayment || player.registeredOnline || player.hasPaidOnline() {
Section { Section {
LabeledContent { LabeledContent {
Text(player.registeredOnline ? "Oui" : "Non") Text(player.registeredOnline ? "Oui" : "Non")
@ -46,7 +46,7 @@ struct PlayerDetailView: View {
Text("Inscription en ligne") Text("Inscription en ligne")
} }
if player.captain { if player.captain && (player.hasPaidOnline() || tournament.enableOnlinePayment) {
LabeledContent { LabeledContent {
Text(player.hasPaidOnline() ? "Oui" : "Non") Text(player.hasPaidOnline() ? "Oui" : "Non")
} label: { } label: {

Loading…
Cancel
Save