fix off by one error in username legth limit

This commit is contained in:
Mateusz Konieczny 2022-09-25 15:39:54 +02:00
parent 791d0f0aad
commit 886f548713

View File

@ -47,7 +47,7 @@ export const SignUp: React.FC = () => {
value={username} onChange={e => setUsername(e.target.value)} value={username} onChange={e => setUsername(e.target.value)}
placeholder="not-your-real-name" required placeholder="not-your-real-name" required
minLength={4} minLength={4}
maxLength={30} maxLength={29}
pattern="\w+" pattern="\w+"
title="Usernames can contain only letters, numbers and the underscore" title="Usernames can contain only letters, numbers and the underscore"
/> />