From 9c65a9c271dfda5ea17c9d909bc9e7e6d0c040ab Mon Sep 17 00:00:00 2001
From: l3wdfut4pwr <l3wdfut4pwr@gmail.com>
Date: Fri, 3 Apr 2026 23:59:33 +0300
Subject: add profile

---
 src/components/header/authdialog/RegisterForm.tsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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

diff --git a/src/components/header/authdialog/RegisterForm.tsx b/src/components/header/authdialog/RegisterForm.tsx
index c8ddb55..0370671 100644
--- a/src/components/header/authdialog/RegisterForm.tsx
+++ b/src/components/header/authdialog/RegisterForm.tsx
@@ -41,12 +41,8 @@ export default function RegisterForm() {
         if (error) {
             setErrors(error);
         } else if (data) {
-            setUser({
-                id: data.id,
-                username: data.username,
-            });
+            setUser(data);
         }
-
         setLoading(false);
     };
 
-- 
cgit v1.3-3-g829e

