Skip to content

Commit

Permalink
clearing track interval correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Elbaz committed Jun 29, 2023
1 parent ba41936 commit da06487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Step/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Step = React.memo(
return () => {
clearInterval(interval);
clearTimeout(timeout);
clearTimeout(trackInterval);
clearInterval(trackInterval);
window.removeEventListener('resize', adjustBoundaries);
window.removeEventListener('scroll', adjustBoundaries);
};
Expand Down

0 comments on commit da06487

Please sign in to comment.