We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a830d commit 8a36780Copy full SHA for 8a36780
src/useTimer.js
@@ -67,7 +67,7 @@ export default function useTimer(settings) {
67
useEffect(() => {
68
if (Validate.expiryTimestamp(expiryTimestamp)) {
69
const secondsValue = Time.getSecondsFromExpiry(expiryTimestamp);
70
- const extraMilliSeconds = ((secondsValue - Math.floor(secondsValue)) * 1000).toFixed(2);
+ const extraMilliSeconds = Math.floor((secondsValue - Math.floor(secondsValue)) * 1000);
71
setSeconds(secondsValue);
72
if (extraMilliSeconds > 0) {
73
handleExtraMilliSeconds(secondsValue, extraMilliSeconds);
0 commit comments