aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Timer/TimerButton/TimerButton.js
diff options
context:
space:
mode:
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);