Browse Source

fix debouncer not updating bolus recommendation when deleting complete carb entry

polscm32 aka Marvout 1 năm trước cách đây
mục cha
commit
c58c9824f5
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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)
             }