From 2bef4ede0bc31b1ced5eb75d0edca725af1c79c7 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 12 Jun 2025 12:22:40 +0200 Subject: [PATCH] fix regressions --- PadelClubData/Data/DataStore.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PadelClubData/Data/DataStore.swift b/PadelClubData/Data/DataStore.swift index 44afbac..97fa7d8 100644 --- a/PadelClubData/Data/DataStore.swift +++ b/PadelClubData/Data/DataStore.swift @@ -98,9 +98,9 @@ public class DataStore: ObservableObject { if let userSingleton: StoredCollection = notification.object as? StoredCollection { self.user = userSingleton.first ?? self._temporaryLocalUser.item ?? CustomUser.placeHolder() - } else if let clubsCollection: StoredCollection = notification.object as? StoredCollection { + } else if notification.object is StoredCollection { self._fixMissingClubCreatorIfNecessary() - } else if let eventsCollection: StoredCollection = notification.object as? StoredCollection { + } else if notification.object is StoredCollection { self._fixMissingEventCreatorIfNecessary() }