Skip to content

Commit

Permalink
Fix local dev bug
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Oct 22, 2024
1 parent 373727d commit 0621d6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useTimeout = ({ onTimeout, duration }: UseTimeoutProps) => {

useEffect(() => {
if (activated) {
setActivated(true);
timeoutRef.current = window.setTimeout(() => {
onTimeout();
}, duration);
Expand Down

0 comments on commit 0621d6f

Please sign in to comment.