Explorar o código

Fix carbs amount

Ivan Valkou %!s(int64=4) %!d(string=hai) anos
pai
achega
6686b3e44f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {