|
|
|
|
@ -961,7 +961,7 @@ struct InscriptionManagerView: View { |
|
|
|
|
ForEach(createdPlayerIds.sorted(), id: \.self) { id in |
|
|
|
|
if let p = createdPlayers.first(where: { $0.id == id }) { |
|
|
|
|
VStack(alignment: .leading, spacing: 0) { |
|
|
|
|
if unsortedPlayers.first(where: { $0.licenceId == p.licenceId }) != nil { |
|
|
|
|
if let player = unsortedPlayers.first(where: { $0.licenceId == p.licenceId }), editedTeam?.includes(player: player) == false { |
|
|
|
|
Text("Déjà inscrit !").foregroundStyle(.logoRed).bold() |
|
|
|
|
} |
|
|
|
|
PlayerView(player: p).tag(p.id) |
|
|
|
|
|