Skip to content

Commit

Permalink
fix: set timer id undefined only after clear timer in register page
Browse files Browse the repository at this point in the history
기존에는 clear 여부와 상관 없이 계속 undefined로 만들고 있었기 때문에
정작 clear가 되어야 할 때 timer id를 찾지 못하는 이슈가 존재합니다
  • Loading branch information
2paperstar committed May 17, 2024
1 parent 56a09b6 commit bbacf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Register/useRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const useRegister = () => {
useEffect(() => {
if (verifyLeftTime < 0 && verifyTimer.current) {
clearInterval(verifyTimer.current);
verifyTimer.current = undefined;
}
verifyTimer.current = undefined;
}, [verifyLeftTime]);

const handleRequest = async (email: string) => {
Expand Down

0 comments on commit bbacf82

Please sign in to comment.