Просмотр исходного кода

fix debouncer not updating bolus recommendation when deleting complete carb entry

polscm32 aka Marvout 1 год назад
Родитель
Сommit
c58c9824f5
1 измененных файлов с 1 добавлено и 3 удалено
  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)
             }