Ivan Valkou пре 4 година
родитељ
комит
6686b3e44f
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
             }
             Button {
-                state.addCarbs(10)
+                state.addCarbs(Int(amount))
             }
             label: {
                 HStack {