From ab330c64eeed9edfc2a6ef6a6f5cd38587ba0996 Mon Sep 17 00:00:00 2001
From: l3wdfut4pwr <l3wdfut4pwr@gmail.com>
Date: Mon, 27 Apr 2026 13:45:25 +0300
Subject: add username change and logout

---
 src/components/header/authdialog/LoginForm.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/components/header/authdialog/LoginForm.tsx')

diff --git a/src/components/header/authdialog/LoginForm.tsx b/src/components/header/authdialog/LoginForm.tsx
index 1dc2df4..b4d90f1 100644
--- a/src/components/header/authdialog/LoginForm.tsx
+++ b/src/components/header/authdialog/LoginForm.tsx
@@ -48,6 +48,7 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
 
             if (!res.ok) {
                 setErrors({ general: 'Неверный логин или пароль' });
+                return;
             } else {
                 const meRes = await fetch(`${API_URL}/api/me`, {
                     credentials: 'include',
-- 
cgit v1.3-3-g829e

