Quellcode durchsuchen

fix debouncer not updating bolus recommendation when deleting complete carb entry

polscm32 aka Marvout vor 1 Jahr
Ursprung
Commit
c58c9824f5
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

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

@@ -286,9 +286,7 @@ extension Bolus {
                     numberFormatter: mealFormatter
                 )
                 .onChange(of: state.carbs) { _ in
-                    if state.carbs > 0 {
-                        handleDebouncedInput()
-                    }
+                    handleDebouncedInput()
                 }
                 Text("g").foregroundColor(.secondary)
             }