Prechádzať zdrojové kódy

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

Deniz Cengiz 1 rok pred
rodič
commit
acf5437c57

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

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