diff --git a/PadelClub/Views/Match/Components/PlayerBlockView.swift b/PadelClub/Views/Match/Components/PlayerBlockView.swift index c1a6a5c..56d88c9 100644 --- a/PadelClub/Views/Match/Components/PlayerBlockView.swift +++ b/PadelClub/Views/Match/Components/PlayerBlockView.swift @@ -77,7 +77,7 @@ struct PlayerBlockView: View { VStack(alignment: .leading) { ZStack(alignment: .leading) { VStack { - if let teamName = team?.name { + if let teamName = team?.name, teamName.isEmpty == false { Text(teamName).foregroundStyle(.secondary).font(.footnote) } Text("longLabelPlayerOne").lineLimit(1) @@ -91,7 +91,7 @@ struct PlayerBlockView: View { Text("RepĂȘchĂ©e").italic().font(.caption) } - if let teamName = team.name { + if let teamName = team.name, teamName.isEmpty == false { Text(teamName).foregroundStyle(.secondary).font(.footnote) } else if team.players().isEmpty { if team.isWildCard() {