From ac81380557f7aee915ead65711d21bc59bccae89 Mon Sep 17 00:00:00 2001 From: Fedor Katurov <gotham48@gmail.com> Date: Thu, 23 Apr 2020 15:18:19 +0700 Subject: [PATCH] fixed timer --- src/components/flow/FlowHero/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/flow/FlowHero/index.tsx b/src/components/flow/FlowHero/index.tsx index 05c4a9cf..2f0c36b8 100644 --- a/src/components/flow/FlowHero/index.tsx +++ b/src/components/flow/FlowHero/index.tsx @@ -46,10 +46,6 @@ const FlowHeroUnconnected: FC<IProps> = ({ heroes, history }) => { useEffect(() => { timer.current = setTimeout(onNext, 5000); - - return () => { - clearTimeout(timer.current); - }; }, [current, onNext]); useEffect(() => {