Przeglądaj źródła

Display "Comtine without boluse" as intended

Jon Mårtensson 2 lat temu
rodzic
commit
70e56174e4

+ 7 - 7
FreeAPS/Sources/Modules/Bolus/View/DefaultBolusCalcRootView.swift

@@ -146,14 +146,14 @@ extension Bolus {
                                 )
                         }
                     }
-                    if state.amount <= 0 {
-                        Section {
-                            Button {
-                                keepForNextWiew = true
-                                state.showModal(for: nil)
-                            }
-                            label: { Text("Continue without bolus") }.frame(maxWidth: .infinity, alignment: .center)
+                }
+                if state.amount <= 0 {
+                    Section {
+                        Button {
+                            keepForNextWiew = true
+                            state.showModal(for: nil)
                         }
+                        label: { Text("Continue without bolus") }.frame(maxWidth: .infinity, alignment: .center)
                     }
                 }
             }