Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Trio/Sources/Modules/Home/View/Header/PumpView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct PumpView: View {
let battery: [OpenAPS_Battery]
@Environment(\.colorScheme) var colorScheme

let NORMAL_PATCH_AGE = TimeInterval.hours(80)
let normalPatchAge = TimeInterval.hours(80)

private var batteryFormatter: NumberFormatter {
let formatter = NumberFormatter()
Expand Down Expand Up @@ -211,7 +211,7 @@ struct PumpView: View {

private var timerColor: Color {
if let activatedAt = activatedAtDate {
return abs(activatedAt.timeIntervalSinceNow) > NORMAL_PATCH_AGE ? Color.yellow : Color.loopGreen
return abs(activatedAt.timeIntervalSinceNow) > normalPatchAge ? Color.yellow : Color.loopGreen
}

guard let expiresAt = expiresAtDate else {
Expand Down