summaryrefslogtreecommitdiff
path: root/src/components/header/authdialog
diff options
context:
space:
mode:
authorl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-04-03 23:59:33 +0300
committerl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-04-03 23:59:33 +0300
commit9c65a9c271dfda5ea17c9d909bc9e7e6d0c040ab (patch)
tree9df45f5df63fb509e1b7cdac81659c4713287d70 /src/components/header/authdialog
parent1d20080db8a26e4b7dd4071daac1166142592afa (diff)
add profile
Diffstat (limited to 'src/components/header/authdialog')
-rw-r--r--src/components/header/authdialog/RegisterForm.tsx6
1 files changed, 1 insertions, 5 deletions
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);
};