From 6069bf9d51cb950a574a4607913de39caea3bf00 Mon Sep 17 00:00:00 2001 From: Alyona Verbanova Date: Sat, 21 Dec 2024 12:46:45 +0100 Subject: [PATCH] improve code --- src/commponents/Errors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commponents/Errors.tsx b/src/commponents/Errors.tsx index 69d232f20..b93c2b641 100644 --- a/src/commponents/Errors.tsx +++ b/src/commponents/Errors.tsx @@ -15,7 +15,7 @@ export const Errors: React.FC = props => { return () => { clearTimeout(timeOut); }; - }, [errorType]); + }, [errorType, clearError]); return (