Skip to content

Commit

Permalink
update text in line with reverse choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Allène committed Mar 31, 2024
1 parent 0336b10 commit 2914a3d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,11 @@ final class RootViewController: UIViewController, ObservableObject {
} else {

// fill in the labels to show sensor time elapsed and max age
dataSourceSensorCurrentAgeOutlet.text = sensorStartDate?.daysAndHoursAgo()
if UserDefaults.standard.reverseProgressBar {
dataSourceSensorCurrentAgeOutlet.text = sensorTimeLeftInMinutes.minutesToDaysAndHours()
} else {
dataSourceSensorCurrentAgeOutlet.text = sensorStartDate?.daysAndHoursAgo()
}

dataSourceSensorMaxAgeOutlet.text = " / " + sensorMaxAgeInMinutes.minutesToDaysAndHours()

Expand Down

0 comments on commit 2914a3d

Please sign in to comment.