diff --git a/FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift b/FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift index 8c8b253073..b63f526379 100644 --- a/FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift +++ b/FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift @@ -107,8 +107,12 @@ extension Bolus { Section { Button { let id_ = meal.first?.id ?? "" - keepForNextWiew = true - state.backToCarbsView(complexEntry: fetch, id_) + if fetch { + keepForNextWiew = true + state.backToCarbsView(complexEntry: fetch, id_) + } else { + state.showModal(for: .addCarbs(editMode: false)) + } } label: { Text(fetch ? "Edit Meal" : "Add Meal") }.frame(maxWidth: .infinity, alignment: .center) }