|
|
|
|
@ -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() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|