feat(MED-100): updateaccountform should be prefilled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user