Skip to content

Commit

Permalink
Hypo treatment default and none option fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-b-m committed Sep 26, 2024
1 parent a7ec4c2 commit c0bd10e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/FreeAPSSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct FreeAPSSettings: JSON, Equatable {
// var sex: Sex = .secret
var sexSetting: Int = 3
var displayDelta: Bool = false
var profileID: OverridePresets.ID = "Hypo Treatment"
var profileID: String = "Hypo Treatment"
}

extension FreeAPSSettings: Decodable {
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Modules/Settings/SettingsStateModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extension Settings {
@Published var debugOptions = false
@Published var animatedBackground = false
@Published var disableCGMError = true
@Published var profileID: OverridePresets.ID = "Hypo Treatment"
@Published var profileID: String = "Hypo Treatment"

private(set) var buildNumber = ""
private(set) var versionNumber = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ extension Settings {
Picker("Treatment", selection: $state.profileID) {
Text("Default 📉").tag("Hypo Treatment")
ForEach(fetchedProfiles) { item in
Text(item.name ?? "").tag(item.id)
Text(item.name ?? "").tag(item.id?.string ?? "")
}
Text("None").tag("None")
}
Expand Down

0 comments on commit c0bd10e

Please sign in to comment.