name optional on account creation
All checks were successful
Deploy to Server / deploy (push) Successful in 30s

This commit is contained in:
2026-04-11 16:23:49 -05:00
parent f94867ca75
commit 2f69f57cf7

View File

@@ -51,10 +51,6 @@ export function SignUpForm({ onLogin }: Props) {
setError('');
const trimmedName = name.trim();
const trimmedEmail = email.trim();
if (trimmedName.length < 2) {
setError('Please enter your full name.');
return;
}
if (!validateEmail(trimmedEmail)) {
setError('Please enter a valid email address.');
return;
@@ -131,13 +127,15 @@ export function SignUpForm({ onLogin }: Props) {
<form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-1">
<Label htmlFor="name">Full name</Label>
<Label htmlFor="name">
Full name{' '}
<span className="text-muted-foreground font-normal">(optional)</span>
</Label>
<Input
id="name"
type="text"
value={name}
onChange={e => setName(e.target.value)}
required
autoComplete="name"
/>
</div>