From f8e0f7e01c6ec78ef617f70b09c217d5430fe4bd Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 15 Dec 2023 13:04:17 +0200 Subject: [PATCH] Update ConnectDevicePage.tsx --- src/pages/ConnectDevicePage/ConnectDevicePage.tsx | 1 - 1 file changed, 1 deletion(-) 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) }, [])