From fd69016ce8add896f27c5bc05510e4009f4a0588 Mon Sep 17 00:00:00 2001 From: asketonim Date: Sun, 12 Jan 2020 23:25:20 +0300 Subject: fix: display time correctly --- src/pages/Timer/TimerButton/TimerButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3