Jon Mårtensson пре 3 година
родитељ
комит
a3934f9ab3

+ 2 - 1
FreeAPS/Sources/Modules/Home/DurationButton.swift

@@ -28,7 +28,8 @@ struct durationButton<T: DurationButton>: View {
             currentIndex = currentIndex < states.count - 1 ? currentIndex + 1 : 0
             selectedState = states[currentIndex]
         } label: {
-            Text(NSLocalizedString(states[currentIndex].title, comment: "Duration displayed in statPanel")).font(.caption2)
+            Text(NSLocalizedString(states[currentIndex].title, comment: "Duration displayed in statPanel"))
+                .font(.caption2)
                 .foregroundColor(.secondary)
         }
 

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -361,7 +361,7 @@ extension Home {
         }
 
         @ViewBuilder private func averageTIRhca1c(
-            _: String,
+            _ hba1c_all: String,
             _ average_: String,
             _: String,
             _ tir_low: String,
@@ -384,7 +384,7 @@ extension Home {
                                 "\(NSLocalizedString("HbA1c", comment: "")) (\(targetFormatter.string(from: (state.statistics?.GlucoseStorage_Days ?? 0) as NSNumber) ?? "") \(NSLocalizedString("days", comment: "")))"
                             )
                             .font(.footnote).foregroundColor(.secondary)
-                            Text(hba1c_).font(.footnote)
+                            Text(hba1c_all).font(.footnote)
                         }
                     }