From 21fbf0e49572539d90a9a2b22ea01a310c5004f5 Mon Sep 17 00:00:00 2001 From: sianida26 Date: Tue, 7 May 2024 23:16:40 +0700 Subject: [PATCH] Add navigate to useEffect deps --- apps/frontend/src/routes/login/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/routes/login/index.tsx b/apps/frontend/src/routes/login/index.tsx index d4a7007..d4a374e 100644 --- a/apps/frontend/src/routes/login/index.tsx +++ b/apps/frontend/src/routes/login/index.tsx @@ -50,7 +50,7 @@ export default function LoginPage() { replace: true, }); } - }, []); + }, [navigate]); const loginMutation = useMutation({ mutationFn: async (values: FormSchema) => {