Skip to content

Commit 2f7584d

Browse files
fix: adjust name (#674)
1 parent a87e8b3 commit 2f7584d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/survey/AccountDetailsForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function AccountDetailsForm({ email, fullName, submitHandler }: AccountDe
4242
<div className="space-y-2">
4343
<div className="space-y-0.5">
4444
<label htmlFor={fullNameId} className="text-text-sm">
45-
Full Name (optional)
45+
Name
4646
</label>
4747
<Input {...register("fullName")} id={fullNameId} className="w-full" />
4848
</div>

src/components/survey/form-schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { updatePasswordBaseFormSchema } from "../password/UpdatePasswordSchemas"
44
// Account Details
55
export const accountDetailsFormSchema = z
66
.object({
7-
fullName: z.union([z.string(), z.literal("")]),
7+
fullName: z.string().min(1),
88
email: z.union([z.string().email(), z.literal("")]),
99
getUpdates: z.boolean()
1010
})

0 commit comments

Comments
 (0)