diff options
author | Anton Dubik <anton.dubik33@gmail.com> | 2020-01-12 23:50:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 23:50:36 +0300 |
commit | 115af109fef73fc57d8d1c463ff0a465b953cafc (patch) | |
tree | 12a38629294c582abaa24d05fdd99709ac63eb3a | |
parent | 1c73d3cd0f78a5c01c9819f016838d188d3cf63f (diff) | |
parent | fd69016ce8add896f27c5bc05510e4009f4a0588 (diff) | |
download | chrono-cube-ui-115af109fef73fc57d8d1c463ff0a465b953cafc.tar.gz |
Merge pull request #38 from Eug-VS/timer-fix
fix: display time correctly
-rw-r--r-- | src/pages/Timer/TimerButton/TimerButton.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/Timer/TimerButton/TimerButton.js b/src/pages/Timer/TimerButton/TimerButton.js index 82af6ec..76bb65d 100644 --- a/src/pages/Timer/TimerButton/TimerButton.js +++ b/src/pages/Timer/TimerButton/TimerButton.js @@ -104,8 +104,8 @@ const convertTimeToString = timeDelta => { resultTime += minute + ':'; let second = Math.floor(timeDelta / 1000); - if (second < 10) resultTime += '0'; if (second > 59) second %= 60; + if (second < 10) resultTime += '0'; resultTime += second + ':'; const mill = Math.floor((timeDelta % 1000) / 10); |