Explorar el Código

Fix carbs amount

Ivan Valkou hace 4 años
padre
commit
48089f3e60
Se han modificado 1 ficheros con 1 adiciones y 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 {