Skip to content

Commit 1914229

Browse files
committed
Remove extra function
1 parent e55f66c commit 1914229

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ export function useCountdown(endTime, options) {
210210
});
211211

212212
React.useEffect(() => {
213-
intervalIdRef.current = window.setInterval(() => {
214-
onTick();
215-
}, options.interval);
213+
intervalIdRef.current = window.setInterval(onTick, options.interval);
216214

217215
return () => handleClearInterval();
218216
}, [options.interval]);

0 commit comments

Comments
 (0)