Robert пре 1 година
родитељ
комит
2a0371a437
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      FreeAPS/Sources/Modules/OverrideConfig/View/AddTempTargetForm.swift

+ 1 - 4
FreeAPS/Sources/Modules/OverrideConfig/View/AddTempTargetForm.swift

@@ -298,10 +298,7 @@ struct AddTempTargetForm: View {
                         Divider()
                         HStack {
                             Text(
-                                state
-                                    .units == .mgdL ?
-                                    "Half Basal Exercise Target at: \(state.computeHalfBasalTarget().formatted(.number.precision(.fractionLength(0)))) mg/dl" :
-                                    "Half Basal Exercise Target at: \(state.computeHalfBasalTarget().asMmolL.formatted(.number.grouping(.never).rounded().precision(.fractionLength(1)))) mmol/L"
+                                "Half Basal Exercise Target at: \(formattedGlucose(glucose: Decimal(state.computeHalfBasalTarget())))"
                             )
                             .lineLimit(1)
                             .minimumScaleFactor(0.5)