Ivan Valkou 4 лет назад
Родитель
Сommit
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 {