瀏覽代碼

add missing case in treatments button label

polscm32 2 年之前
父節點
當前提交
1ce16cf995
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

+ 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