dkrichards86 / downtimer

Downtimer is a browser based productivity timer and wellness app.
https://downtimer.io
MIT License
0 stars 0 forks source link

Incorrect progress bar #34

Closed dkrichards86 closed 5 years ago

dkrichards86 commented 5 years ago

What kind of change does this PR introduce?

What is the current behavior? When loading saved timers, the duration would not get set properly. This resulted in incorrect progress bars on initial load.

For example, the default duration is 20 minutes. If a single timer were saved with a duration of 30 minutes, the next page load would show a progress bar at 33.33% complete (30 duration, 20 remaining = 10/30).

What is the new behavior? Current time is set to match new duration.

Other information