瀏覽代碼

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

Signed-off-by: Sjoerd Bozon <sjoerd.bozon@gmail.com>
Sjoerd Bozon 1 年之前
父節點
當前提交
80cdfdd2d2
共有 1 個文件被更改,包括 1 次插入0 次删除
  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