We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5299047 commit cc9beabCopy full SHA for cc9beab
1 file changed
Recap/UseCases/Settings/ViewModels/MeetingDetection/MeetingDetectionSettingsViewModel.swift
@@ -20,13 +20,12 @@ final class MeetingDetectionSettingsViewModel: MeetingDetectionSettingsViewModel
20
}
21
22
private func loadCurrentSettings() async {
23
- do {
24
- let preferences = try await userPreferencesRepository.getOrCreatePreferences()
25
- withAnimation(.easeInOut(duration: 0.2)) {
26
- autoDetectMeetings = preferences.autoDetectMeetings
27
- }
28
- } catch {
29
- logger.error("Failed to load user preferences: \(String(describing: error))")
+ guard let preferences = try? await userPreferencesRepository.getOrCreatePreferences() else {
+ return
+ }
+
+ withAnimation(.easeInOut(duration: 0.2)) {
+ autoDetectMeetings = preferences.autoDetectMeetings
30
31
32
0 commit comments