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(''); setError('');
const trimmedName = name.trim(); const trimmedName = name.trim();
const trimmedEmail = email.trim(); const trimmedEmail = email.trim();
if (trimmedName.length < 2) {
setError('Please enter your full name.');
return;
}
if (!validateEmail(trimmedEmail)) { if (!validateEmail(trimmedEmail)) {
setError('Please enter a valid email address.'); setError('Please enter a valid email address.');
return; return;
@@ -131,13 +127,15 @@ export function SignUpForm({ onLogin }: Props) {
<form onSubmit={handleSubmit} className="space-y-4"> <form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-1"> <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 <Input
id="name" id="name"
type="text" type="text"
value={name} value={name}
onChange={e => setName(e.target.value)} onChange={e => setName(e.target.value)}
required
autoComplete="name" autoComplete="name"
/> />
</div> </div>