Explorar o código

Only show Factors Row if Recommendation > 0 U

Mike Plante hai 1 ano
pai
achega
32cb796ec8
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      Trio/Sources/Modules/Treatments/View/PopupView.swift

+ 5 - 4
Trio/Sources/Modules/Treatments/View/PopupView.swift

@@ -95,10 +95,11 @@ struct PopupView: View {
 
                     DividerDouble()
 
-                    calcResultRow
-                    calcResultFormulaRow
-
-                    DividerCustom()
+                    if (state.factoredInsulin > 0) {
+                        calcResultRow
+                        calcResultFormulaRow
+                        DividerCustom()
+                    }
 
                     GridRow {
                         Text("Recommended Bolus")