Kaynağa Gözat

Added comment about .initiating and removed the carb/fat/protein dependency

Jonas Björkert 1 gün önce
ebeveyn
işleme
f6c21a4128

+ 2 - 2
Trio/Sources/Modules/Treatments/View/TreatmentsRootView.swift

@@ -693,9 +693,9 @@ extension Treatments {
         }
 
         private var bolusInProgressForEntry: Bool {
+            // .initiating covers pumps that take a few seconds before reporting progress
             (state.bolusProgress != nil || state.bolusStatus == .initiating) &&
-                state.amount > 0 && !state.externalInsulin &&
-                (state.carbs == 0 || state.fat == 0 || state.protein == 0)
+                state.amount > 0 && !state.externalInsulin
         }
 
         private var disableTaskButton: Bool {