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

😵

(cherry picked from commit 91d4fc79e70985e608287493b28336b97b44a49d)
Jon Mårtensson 2 лет назад
Родитель
Сommit
7aeade48d4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

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

@@ -72,7 +72,7 @@ extension Bolus {
                                 autofocus: true,
                                 cleanInput: true
                             )
-                            Text("U").foregroundColor(.secondary)
+                            Text(!(state.amount > state.maxBolus) ? "U" : "😵").foregroundColor(.secondary)
                         }
                     }
                     header: { Text("Bolus") }