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