Переглянути джерело

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()
 
-                    calcResultRow
-                    calcResultFormulaRow
-
-                    DividerCustom()
+                    if (state.factoredInsulin > 0) {
+                        calcResultRow
+                        calcResultFormulaRow
+                        DividerCustom()
+                    }
 
                     GridRow {
                         Text("Recommended Bolus")