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

Fix bolus input (-) button disabled (thx @avouspierre)

Deniz Cengiz 1 год назад
Родитель
Сommit
acf5437c57
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Trio Watch App Extension/Views/BolusInputView.swift

+ 1 - 1
Trio Watch App Extension/Views/BolusInputView.swift

@@ -65,7 +65,7 @@ struct BolusInputView: View {
                                 .foregroundColor(Color.insulin)
                         }
                         .buttonStyle(.borderless)
-                        .disabled(bolusAmount < 1)
+                        .disabled(bolusAmount == 0)
 
                         Spacer()