polscm32 1 год назад
Родитель
Сommit
2e68eab772
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

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

@@ -677,7 +677,7 @@ extension Home {
         }
 
         @ViewBuilder func bolusView(_: GeometryProxy, _ progress: Decimal) -> some View {
-            let bolusTotal = state.boluses.last?.amount ?? 0
+            let bolusTotal = (recentPumpHistory.first?.bolus?.amount) as? Decimal ?? 0
             let bolusFraction = progress * bolusTotal
 
             let bolusString =