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

Merge branch 'tempTargets' of https://github.com/dnzxy/Trio-dev into tempTargets

polscm32 aka Marvout преди 1 година
родител
ревизия
390eee8866
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      FreeAPS/Sources/Modules/DataTable/View/DataTableRootView.swift

+ 1 - 1
FreeAPS/Sources/Modules/DataTable/View/DataTableRootView.swift

@@ -343,7 +343,7 @@ extension DataTable {
             let formattedDates = "\(dateFormatter.string(from: item.startDate)) - \(dateFormatter.string(from: item.endDate))"
 
             let labels: [String] = [
-                "\(item.target) \(state.units.rawValue)",
+                "\(state.units == .mgdL ? item.target : item.target.asMmolL) \(state.units.rawValue)",
                 formattedDates
             ].filter { !$0.isEmpty }