feat(MED-100): updateaccountform should be prefilled

This commit is contained in:
2025-07-17 10:17:50 +03:00
parent 6426e2a79b
commit 736194bb0b

View File

@@ -31,15 +31,16 @@ export function UpdateAccountForm({ user }: { user: User }) {
defaultValues: { defaultValues: {
firstName: '', firstName: '',
lastName: '', lastName: '',
personalCode: '', personalCode: user.user_metadata.personalCode ?? '',
email: user.email, email: user.email,
phone: '', phone: '',
city: '', city: '',
weight: 0, weight: user.user_metadata.weight ?? undefined,
height: 0, height: user.user_metadata.height ?? undefined,
userConsent: false, userConsent: false,
}, },
}); });
return ( return (
<Form {...form}> <Form {...form}>
<form <form