Skip to content

Commit

Permalink
Fixed: #8
Browse files Browse the repository at this point in the history
`clearTimout` now changed to `clearTimeout.current`
  • Loading branch information
shubhanus committed Feb 21, 2020
1 parent 6e9a26d commit 8c131f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/hooks/resendOTP.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useResendOTP = ({
}, timeInterval);
}
return () => {
clearTimeout(timeout);
clearTimeout(timeout.current);
};
}, [onTimerComplete, remainingTime, timeInterval]);

Expand Down

0 comments on commit 8c131f0

Please sign in to comment.