|
@@ -1229,8 +1229,8 @@ extension MainChartView {
|
|
|
// Ensure maxForecast is not more than 100 over maxGlucose
|
|
// Ensure maxForecast is not more than 100 over maxGlucose
|
|
|
let adjustedMaxForecast = min(maxForecast, maxGlucose + 100)
|
|
let adjustedMaxForecast = min(maxForecast, maxGlucose + 100)
|
|
|
|
|
|
|
|
- var minOverall = min(minGlucose, minForecast)
|
|
|
|
|
- var maxOverall = max(maxGlucose, adjustedMaxForecast)
|
|
|
|
|
|
|
+ let minOverall = min(minGlucose, minForecast)
|
|
|
|
|
+ let maxOverall = max(maxGlucose, adjustedMaxForecast)
|
|
|
|
|
|
|
|
minValue = minOverall - 50
|
|
minValue = minOverall - 50
|
|
|
maxValue = maxOverall + 80
|
|
maxValue = maxOverall + 80
|