From c7d2526afec5ffb8918c20d7c1c58852f1c647bd Mon Sep 17 00:00:00 2001
From: l3wdfut4pwr <l3wdfut4pwr@gmail.com>
Date: Tue, 21 Apr 2026 13:33:46 +0300
Subject: minor profile changes

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

(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 913ca66..1dc2df4 100644
--- a/src/components/header/authdialog/LoginForm.tsx
+++ b/src/components/header/authdialog/LoginForm.tsx
@@ -54,7 +54,7 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
                 });
                 if (!meRes.ok) throw new Error('Failed to fetch user');
                 const meData = await meRes.json();
-                setUser(meData);
+                setUser(meData.authenticated ? meData.user : null);
                 if (redirectTo) router.push(redirectTo);
             }
         } catch (err) {
-- 
cgit v1.3-3-g829e

