diff --git a/frontend/src/components/RegistrationForm.tsx b/frontend/src/components/RegistrationForm.tsx index b9c197e..2515124 100644 --- a/frontend/src/components/RegistrationForm.tsx +++ b/frontend/src/components/RegistrationForm.tsx @@ -12,10 +12,10 @@ export default function RegistrationForm({ }: { onSubmit: (data: RegistrationFormSubmit) => void; }) { - const [username, setUsername] = React.useState(null); - const [email, setEmail] = React.useState(null); - const [password, setPassword] = React.useState(null); - const [password2, setPassword2] = React.useState(null); + const [username, setUsername] = React.useState(''); + const [email, setEmail] = React.useState(''); + const [password, setPassword] = React.useState(''); + const [password2, setPassword2] = React.useState(''); const onChangeUsername = React.useCallback((e) => setUsername(e.target.value), []); const onChangeEmail = React.useCallback((e) => setEmail(e.target.value), []); @@ -32,7 +32,14 @@ export default function RegistrationForm({