diff --git a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx b/src/pages/ConnectDevicePage/ConnectDevicePage.tsx index eee44878..a882aaed 100644 --- a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx +++ b/src/pages/ConnectDevicePage/ConnectDevicePage.tsx @@ -18,7 +18,6 @@ const ConnectDevicePage = () => { setWindowWidth(window.innerWidth) } window.addEventListener('resize', handleResize) - return () => window.removeEventListener('resize', handleResize) }, [])