Check token to display username

multistore
Laurent 1 year ago
parent 27fa26f86e
commit 6f4398ee8c
  1. 2
      PadelClub/Views/Navigation/Umpire/UmpireView.swift

@ -51,7 +51,7 @@ struct UmpireView: View {
MainUserView() MainUserView()
} label: { } label: {
LabeledContent { LabeledContent {
if Store.main.userName() != nil { if Store.main.hasToken() {
Text(dataStore.user.username) Text(dataStore.user.username)
} else { } else {
Image(systemName: "xmark.circle.fill") Image(systemName: "xmark.circle.fill")

Loading…
Cancel
Save