Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: RDMurray <[email protected]>
  • Loading branch information
steinbro and RDMurray authored Oct 3, 2024
1 parent 4359430 commit 20c425b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/ios/GuideDogs/Code/App/Settings/SettingsContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ class SettingsContext {
}
set {
userDefaults.set(newValue, forKey: Keys.leaveImmediateVicinityDistance)
// Ensure leave is always 10m greater than enter
userDefaults.set(newValue - 15.0, forKey: Keys.enterImmediateVicinityDistance)
// Ensure leave is always 15m greater than enter
userDefaults.set(max(newValue - 15.0, 0.0), forKey: Keys.enterImmediateVicinityDistance)
}
}

Expand Down

0 comments on commit 20c425b

Please sign in to comment.