Explorar o código

adjust order of tasks

polscm32 %!s(int64=2) %!d(string=hai) anos
pai
achega
79def8ce4a

+ 2 - 2
FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

@@ -437,10 +437,10 @@ extension Bolus {
                         Section {
                         Section {
                             Button {
                             Button {
                                 Task {
                                 Task {
-                                    state.waitForSuggestion = true
-                                    state.addButtonPressed = true
                                     await state.add()
                                     await state.add()
+                                    state.waitForSuggestion = true
                                     state.addCarbs()
                                     state.addCarbs()
+                                    state.addButtonPressed = true
                                 }
                                 }
                             }
                             }