Przeglądaj źródła

Fix carbs amount

Ivan Valkou 4 lat temu
rodzic
commit
6686b3e44f

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

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