Skip to content

Commit

Permalink
Fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit6789 committed Feb 26, 2025
1 parent d694671 commit ae23518
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hooks/useScrollEventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ const useScrollEventEmitter = (additionalEmitData: ScrollingEventAdditionalData)
// Cleanup timeout on unmount
useEffect(() => {
return () => {
if (timeoutRef.current) {
clearTimeout(timeoutRef.current);
if (!timeoutRef.current) {
return;
}
clearTimeout(timeoutRef.current);
};
}, []);

Expand Down

0 comments on commit ae23518

Please sign in to comment.