From fae48947a6cc732818b3c2a4a94ec8ca3acbf3cc Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 24 Apr 2025 19:29:13 +0200 Subject: [PATCH] fix messaging online payment in playerdetail view --- PadelClub/Views/Player/PlayerDetailView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {