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

Fix faulty double mmol/L parsing for popover

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

+ 1 - 3
FreeAPS/Sources/Modules/Home/View/Chart/ChartElements/SelectionPopoverView.swift

@@ -70,9 +70,7 @@ struct SelectionPopoverView: ChartContent {
             .font(.body).padding(.bottom, 5)
 
             HStack {
-                Text(units == .mgdL ? glucoseToDisplay.description : glucoseToDisplay.formattedAsMmolL)
-                    .bold()
-                    + Text(" \(units.rawValue)")
+                Text(glucoseToDisplay.description).bold() + Text(" \(units.rawValue)")
             }
             .foregroundStyle(pointMarkColor)
             .font(.body)