Parcourir la source

add missing case in treatments button label

polscm32 il y a 2 ans
Parent
commit
1ce16cf995

+ 7 - 0
FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

@@ -978,6 +978,13 @@ extension Bolus {
                         (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log carbs and external insulin") :
                         (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log carbs and external insulin") :
                         (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log carbs and enact bolus")
                         (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log carbs and enact bolus")
                 )
                 )
+            case (true, false, true):
+                return Text(
+                    state
+                        .externalInsulin ?
+                        (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log FPUs and external insulin") :
+                        (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log FPUs and enact bolus")
+                )
             case (true, false, false):
             case (true, false, false):
                 return Text(
                 return Text(
                     state
                     state