浏览代码

Fix CV string, add % and 1 decimal

Deniz Cengiz 1 年之前
父节点
当前提交
0a632aad94
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Trio/Sources/Modules/Stat/View/ViewElements/Glucose/GlucoseMetricsView.swift

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/Glucose/GlucoseMetricsView.swift

@@ -42,7 +42,7 @@ struct GlucoseMetricsView: View {
             .number.grouping(.never).rounded().precision(.fractionLength(1))
         )
         let coefficientOfVariationString = glucoseStats.cv
-            .formatted(.number.grouping(.never).rounded().precision(.fractionLength(0)))
+            .formatted(.number.grouping(.never).rounded().precision(.fractionLength(1))) + "%"
         let daysTrackedString = totalDays.formatted(.number.grouping(.never).rounded().precision(.fractionLength(1)))
 
         VStack(alignment: .leading) {