Преглед изворни кода

Only show Factors Row if Recommendation > 0 U

Mike Plante пре 1 година
родитељ
комит
32cb796ec8
1 измењених фајлова са 5 додато и 4 уклоњено
  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()
                     DividerDouble()
 
 
-                    calcResultRow
-                    calcResultFormulaRow
-
-                    DividerCustom()
+                    if (state.factoredInsulin > 0) {
+                        calcResultRow
+                        calcResultFormulaRow
+                        DividerCustom()
+                    }
 
 
                     GridRow {
                     GridRow {
                         Text("Recommended Bolus")
                         Text("Recommended Bolus")