Browse Source

use correct units in adjustment history display

Mike Plante 1 year ago
parent
commit
9842b13125
1 changed files with 1 additions and 1 deletions
  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 }