Skip to content

Commit

Permalink
fix: toast 여러 번 띄워지는 문제 -> 의존성 배열 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nim-od committed Aug 15, 2024
1 parent 036846d commit 443aa9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function useGaugeProgress({
const resetTimer = setTimeout(resetProgress, RESET_SECOND);
return () => clearTimeout(resetTimer);
}
}, [clickCount, onFullyCharged, toast, updateProgress, resetProgress]);
}, [clickCount]);

const handleClick = useCallback(() => {
if (clickCount < MAX_CLICK) {
Expand Down

0 comments on commit 443aa9a

Please sign in to comment.