Преглед на файлове

Fix threshold line colors

Deniz Cengiz преди 1 година
родител
ревизия
f34afad0a0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -253,7 +253,7 @@ extension MainChartView {
                     glucoseValue: lowGlucose,
                     highGlucoseColorValue: highGlucose,
                     lowGlucoseColorValue: lowGlucose,
-                    targetGlucose: lowGlucose,
+                    targetGlucose: currentGlucoseTarget,
                     dynamicGlucoseColor: dynamicGlucoseColor,
                     offset: units == .mgdL ? 20 : 20.asMmolL
                 )
@@ -261,7 +261,7 @@ extension MainChartView {
                     glucoseValue: highGlucose,
                     highGlucoseColorValue: highGlucose,
                     lowGlucoseColorValue: highGlucose,
-                    targetGlucose: highGlucose,
+                    targetGlucose: currentGlucoseTarget,
                     dynamicGlucoseColor: dynamicGlucoseColor,
                     offset: units == .mgdL ? 20 : 20.asMmolL
                 )