Explorar o código

fix(glucoseformatter): mmol values now always showed with 1 decimal

Signed-off-by: Sjoerd Bozon <sjoerd.bozon@gmail.com>
Sjoerd Bozon hai 1 ano
pai
achega
80cdfdd2d2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      FreeAPS/Sources/Helpers/Formatters.swift

+ 1 - 0
FreeAPS/Sources/Helpers/Formatters.swift

@@ -63,6 +63,7 @@ extension Formatter {
 
         switch units {
         case .mmolL:
+            formatter.minimumFractionDigits = 1
             formatter.maximumFractionDigits = 1
         case .mgdL:
             formatter.maximumFractionDigits = 0