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.
2 parents 504a286 + cbcd4f6 commit 56656e7Copy full SHA for 56656e7
src/useTimer.js
@@ -63,7 +63,7 @@ export default function useTimer(settings) {
63
function start() {
64
if(isValidExpiryTimestamp(expiryTimestamp) && !intervalRef.current) {
65
calculateExpiryDate();
66
- intervalRef.current = setInterval(() => subtractSecond(), 1000);
+ intervalRef.current = setInterval(() => calculateExpiryDate(), 1000);
67
}
68
69
0 commit comments