Skip to content

Commit

Permalink
fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed Jun 20, 2024
1 parent 3c0b7e7 commit 4e7d3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ extension Bolus {
}
HStack {
Text("ISF").foregroundColor(.secondary)
let isf = state.isf == .mmolL ? state.target.asMmolL : state.isf
let isf = state.units == .mmolL ? state.target.asMmolL : state.isf
Text(isf.formatted(.number.grouping(.never).rounded().precision(.fractionLength(fractionDigits))))
Text(state.units.rawValue + NSLocalizedString("/U", comment: "/Insulin unit"))
.foregroundColor(.secondary)
Expand Down

0 comments on commit 4e7d3df

Please sign in to comment.