From 35e4629c0a128a7a33aa60c364a70e56b0e20aa8 Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 29 Dec 2023 16:34:08 +0100 Subject: [PATCH] edit: fix update user info --- components/UserInfoForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/UserInfoForm.vue b/components/UserInfoForm.vue index 526e567..1743680 100644 --- a/components/UserInfoForm.vue +++ b/components/UserInfoForm.vue @@ -64,7 +64,7 @@ const onSubmit = handleSubmit(async (form) => { message, } } else if (data.value) { - Object.assign(user.value, data) + Object.assign(user.value, data.value) resetForm({ values: { ...data.value, mail: user.value.mail }, })