From 006a1a7b7b023bc06af608951acb423af944df15 Mon Sep 17 00:00:00 2001 From: Alibek Date: Sat, 16 Mar 2024 19:04:37 +0600 Subject: [PATCH] fixed redirect to profile --- src/widgets/forms/SignInForm/SignInForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/forms/SignInForm/SignInForm.tsx b/src/widgets/forms/SignInForm/SignInForm.tsx index bd08d1a..7f9c1e2 100644 --- a/src/widgets/forms/SignInForm/SignInForm.tsx +++ b/src/widgets/forms/SignInForm/SignInForm.tsx @@ -50,7 +50,7 @@ const SignInForm = () => { setLoader(false); if (res?.ok && !res.error) { - // router.push("/profile/personal"); + router.push("/profile/personal"); } else if ([400, 401, 404].includes(res?.status as number)) { setError("Неверный Email или Пароль"); } else {