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: {
firstName: '',
lastName: '',
personalCode: '',
personalCode: user.user_metadata.personalCode ?? '',
email: user.email,
phone: '',
city: '',
weight: 0,
height: 0,
weight: user.user_metadata.weight ?? undefined,
height: user.user_metadata.height ?? undefined,
userConsent: false,
},
});
return (
<Form {...form}>
<form