fix blank name

This commit is contained in:
2025-12-02 22:55:44 -03:00
parent 7b8594ec3d
commit 3a49b13cb9

View File

@@ -64,7 +64,7 @@ export default function Signup({}: Route.ComponentProps) {
<FormField <FormField
control={control} control={control}
name="name" name="name"
defaultValue={user?.name} defaultValue={user?.name || ''}
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Nome</FormLabel> <FormLabel>Nome</FormLabel>
@@ -94,6 +94,7 @@ export default function Signup({}: Route.ComponentProps) {
<FormField <FormField
control={control} control={control}
name="cpf" name="cpf"
disabled={true}
defaultValue={user.cpf} defaultValue={user.cpf}
render={({ field: { ref, onChange, ...props } }) => ( render={({ field: { ref, onChange, ...props } }) => (
<FormItem> <FormItem>
@@ -137,7 +138,7 @@ export default function Signup({}: Route.ComponentProps) {
<FormField <FormField
control={control} control={control}
name="password" name="confirm_password"
defaultValue="" defaultValue=""
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>