Ver código fonte

Fix carbs amount

Ivan Valkou 4 anos atrás
pai
commit
6686b3e44f

+ 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 {