Quellcode durchsuchen

Use same formatter for iob in selection popover as in the meal panel

Marvin Polscheit vor 2 Monaten
Ursprung
Commit
4978648c3d

+ 1 - 1
Trio/Sources/Modules/Home/View/Chart/ChartElements/SelectionPopoverView.swift

@@ -89,7 +89,7 @@ struct SelectionPopoverView: ChartContent {
             if let selectedIOBValue, let iob = selectedIOBValue.iob {
                 HStack {
                     Image(systemName: "syringe.fill").frame(width: 15)
-                    Text(Formatter.bolusFormatter.string(from: iob) ?? "")
+                    Text(Formatter.decimalFormatterWithTwoFractionDigits.string(from: iob) ?? "")
                         .bold()
                         + Text(String(localized: " U", comment: "Insulin unit"))
                 }