From 571f4ec591c9fa9bf9eae9cac8f5a55e4bf60b02 Mon Sep 17 00:00:00 2001 From: Oluwatobiju Judah Date: Fri, 18 Feb 2022 16:42:58 +0100 Subject: [PATCH] chore: remove unused code --- src/components/Preloader/Preloader.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/Preloader/Preloader.tsx b/src/components/Preloader/Preloader.tsx index 17b6fdd..576f7f3 100644 --- a/src/components/Preloader/Preloader.tsx +++ b/src/components/Preloader/Preloader.tsx @@ -46,8 +46,6 @@ const Preloader: React.FC = ({ windowWidth, setPreloaded }) => { setTimeout(() => { preload(); }, 1500); - - return () => window.removeEventListener("resize", preload); }, [letterRefs]); return (