瀏覽代碼

Merge pull request #172 from MikePlante1/max_bolus

update 'Max Bolus exceeded' label
Deniz Cengiz 2 年之前
父節點
當前提交
47078a42ad
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 2 - 1
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -80,10 +80,11 @@ extension Bolus {
                         Button { state.add() }
                         Button { state.add() }
                         label: {
                         label: {
                             Text(
                             Text(
-                                state.amount < state.maxBolus ? NSLocalizedString("Enact bolus", comment: "") :
+                                state.amount <= state.maxBolus ? NSLocalizedString("Enact bolus", comment: "") :
                                     NSLocalizedString("Max Bolus exceeded!", comment: "")
                                     NSLocalizedString("Max Bolus exceeded!", comment: "")
                                     + " (>"
                                     + " (>"
                                     + formatter.string(from: state.maxBolus as NSNumber)!
                                     + formatter.string(from: state.maxBolus as NSNumber)!
+                                    + NSLocalizedString("U", comment: "Insulin unit")
                                     + ")"
                                     + ")"
                             ) }
                             ) }
                             .disabled(
                             .disabled(