Browse Source

Only show Factors Row if Recommendation > 0 U

Mike Plante 1 year ago
parent
commit
32cb796ec8
1 changed files with 5 additions and 4 deletions
  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")