Explorar o código

fix omnipod time

Ivan Valkou %!s(int64=5) %!d(string=hai) anos
pai
achega
5fac100144
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
         let minutes = Int(time / 1.minutes.timeInterval)
 
-        if days > 1 {
+        if days >= 1 {
             return "\(days)d \(hours)h"
         }
 
-        if hours > 1 {
+        if hours >= 1 {
             return "\(hours)h"
         }