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 8f98dd1 commit e62c482
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 e62c482

Please sign in to comment.