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