Ivan Valkou пре 5 година
родитељ
комит
5fac100144
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

@@ -73,11 +73,11 @@ struct PumpView: View {
         time -= hours.hours.timeInterval
         time -= hours.hours.timeInterval
         let minutes = Int(time / 1.minutes.timeInterval)
         let minutes = Int(time / 1.minutes.timeInterval)
 
 
-        if days > 1 {
+        if days >= 1 {
             return "\(days)d \(hours)h"
             return "\(days)d \(hours)h"
         }
         }
 
 
-        if hours > 1 {
+        if hours >= 1 {
             return "\(hours)h"
             return "\(hours)h"
         }
         }