diff --git a/Shared/View Models/NotificationTypesPreferencesViewModel.swift b/Shared/View Models/NotificationTypesPreferencesViewModel.swift index 2520efd..28cef2b 100644 --- a/Shared/View Models/NotificationTypesPreferencesViewModel.swift +++ b/Shared/View Models/NotificationTypesPreferencesViewModel.swift @@ -23,7 +23,7 @@ class NotificationTypesPreferencesViewModel: ObservableObject { $pushSubscriptionAlerts .dropFirst() .removeDuplicates() - .sink(receiveValue: update(alerts:)) + .sink { [weak self] in self?.update(alerts: $0) } .store(in: &cancellables) } }