diff options
author | asketonim <anton.dubik33@gmail.com> | 2020-01-12 23:25:20 +0300 |
---|---|---|
committer | asketonim <anton.dubik33@gmail.com> | 2020-01-12 23:40:51 +0300 |
commit | fd69016ce8add896f27c5bc05510e4009f4a0588 (patch) | |
tree | 12a38629294c582abaa24d05fdd99709ac63eb3a | |
parent | 1c73d3cd0f78a5c01c9819f016838d188d3cf63f (diff) | |
download | chrono-cube-ui-fd69016ce8add896f27c5bc05510e4009f4a0588.tar.gz |
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); |