Skip to content

Commit

Permalink
Update src/Components/Common/Sidebar/Sidebar.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Rithvik Nishad <mail@rithviknishad.dev>
  • Loading branch information
shivankacker and rithviknishad authored Sep 19, 2024
1 parent 7888909 commit a713821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Common/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const StatelessSidebar = ({
}, [activeLink, lastIndicatorPosition]);

useEffect(() => {
window.addEventListener("resize", updateIndicator);
return () => window.removeEventListener("resize", updateIndicator);
addEventListener("resize", updateIndicator);
return () => removeEventListener("resize", updateIndicator);
}, []);

const handleOverflow = (value: boolean) => {
Expand Down

0 comments on commit a713821

Please sign in to comment.