Jon B.M 4 anni fa
parent
commit
10877f6c78
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 1 - 2
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -35,8 +35,7 @@ extension Bolus {
                             ).foregroundColor(.secondary)
                         }.contentShape(Rectangle())
                             .onTapGesture {
-                                state.amount = max(Decimal(round(Double(state.insulinRequired) * 20) / 20.0), 0) // round to x.x5
-                                // state.amount = max(0, self.apsManager.roundBolus(amount: state.insulinRequired))  //throws arror about optional parameter being nil
+                                state.amount = state.insulinRecommended
                             }
                         HStack {
                             Text("Insulin recommended")