Skip to content

Commit

Permalink
Update ContactSettingsViewModel.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebash authored Jan 18, 2025
1 parent 1172713 commit 5de1a70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LoopFollow/Contact/Settings/ContactSettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ class ContactSettingsViewModel: ObservableObject {

@Published var contactTrend: String {
didSet {
if contactTrend == "Include" {
contactDelta = "Off"
}
storage.contactTrend.value = contactTrend
triggerRefresh()
}
}

@Published var contactDelta: String {
didSet {
if contactDelta == "Include" {
contactTrend = "Off"
}
storage.contactDelta.value = contactDelta
triggerRefresh()
}
Expand Down

0 comments on commit 5de1a70

Please sign in to comment.