fix regressions

sync3
Laurent 5 months ago
parent 9bf546ac3d
commit 2bef4ede0b
  1. 4
      PadelClubData/Data/DataStore.swift

@ -98,9 +98,9 @@ public class DataStore: ObservableObject {
if let userSingleton: StoredCollection<CustomUser> = notification.object as? StoredCollection<CustomUser> {
self.user = userSingleton.first ?? self._temporaryLocalUser.item ?? CustomUser.placeHolder()
} else if let clubsCollection: StoredCollection<Club> = notification.object as? StoredCollection<Club> {
} else if notification.object is StoredCollection<Club> {
self._fixMissingClubCreatorIfNecessary()
} else if let eventsCollection: StoredCollection<Event> = notification.object as? StoredCollection<Event> {
} else if notification.object is StoredCollection<Event> {
self._fixMissingEventCreatorIfNecessary()
}

Loading…
Cancel
Save