fix team name playerblock view

sync3
Razmig Sarkissian 2 months ago
parent b8bf7f99e8
commit 862b7deced
  1. 4
      PadelClub/Views/Match/Components/PlayerBlockView.swift

@ -77,7 +77,7 @@ struct PlayerBlockView: View {
VStack(alignment: .leading) { VStack(alignment: .leading) {
ZStack(alignment: .leading) { ZStack(alignment: .leading) {
VStack { VStack {
if let teamName = team?.name { if let teamName = team?.name, teamName.isEmpty == false {
Text(teamName).foregroundStyle(.secondary).font(.footnote) Text(teamName).foregroundStyle(.secondary).font(.footnote)
} }
Text("longLabelPlayerOne").lineLimit(1) Text("longLabelPlayerOne").lineLimit(1)
@ -91,7 +91,7 @@ struct PlayerBlockView: View {
Text("Repêchée").italic().font(.caption) 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) Text(teamName).foregroundStyle(.secondary).font(.footnote)
} else if team.players().isEmpty { } else if team.players().isEmpty {
if team.isWildCard() { if team.isWildCard() {

Loading…
Cancel
Save