Parcourir la source

Fix carbs amount

Ivan Valkou il y a 4 ans
Parent
commit
48089f3e60
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      FreeAPSWatch WatchKit Extension/Views/CarbsView.swift

+ 1 - 1
FreeAPSWatch WatchKit Extension/Views/CarbsView.swift

@@ -44,7 +44,7 @@ struct CarbsView: View {
                     .frame(width: 50)
                     .frame(width: 50)
             }
             }
             Button {
             Button {
-                state.addCarbs(10)
+                state.addCarbs(Int(amount))
             }
             }
             label: {
             label: {
                 HStack {
                 HStack {