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")
}
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: {

Loading…
Cancel
Save