Web: Client: NavMenu: fix memory leak

This commit is contained in:
Viktor Fomin 2022-05-16 14:37:08 +03:00
parent f8ce260d91
commit 4ad45de4b6

View File

@ -44,6 +44,9 @@ const RecoverAccessModalDialog = ({
React.useEffect(() => {
window.addEventListener("resize", () => setWidth(window.innerWidth));
return () =>
window.removeEventListener("resize", () => setWidth(window.innerWidth));
}, []);
return (