From 1f47da0013346a6cce40bac1fc04e2e0f5925e41 Mon Sep 17 00:00:00 2001 From: Type-Style Date: Sun, 29 Dec 2024 17:49:38 +0100 Subject: [PATCH] [Task] #189, fix linter error --- src/client/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/App.tsx b/src/client/components/App.tsx index b4c7a1b..073bb88 100644 --- a/src/client/components/App.tsx +++ b/src/client/components/App.tsx @@ -63,7 +63,7 @@ const App = () => { useEffect(() => { if (!isLoggedIn) return; - const fetchToken = async (path:string, setState:Function) => { + const fetchToken = async (path:string, setState: React.Dispatch>) => { try { const token = localStorage.getItem("jwt"); const response = await axios.get(path, {