aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Timer/TimerButton/TimerButton.js
diff options
context:
space:
mode:
authorasketonim <anton.dubik33@gmail.com>2020-01-12 23:25:20 +0300
committerasketonim <anton.dubik33@gmail.com>2020-01-12 23:40:51 +0300
commitfd69016ce8add896f27c5bc05510e4009f4a0588 (patch)
tree12a38629294c582abaa24d05fdd99709ac63eb3a /src/pages/Timer/TimerButton/TimerButton.js
parent1c73d3cd0f78a5c01c9819f016838d188d3cf63f (diff)
downloadchrono-cube-ui-fd69016ce8add896f27c5bc05510e4009f4a0588.tar.gz
fix: display time correctly
Diffstat (limited to 'src/pages/Timer/TimerButton/TimerButton.js')
-rw-r--r--src/pages/Timer/TimerButton/TimerButton.js2
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);