diff --git a/website/src/SignUpForm.tsx b/website/src/SignUpForm.tsx index 8b43f35..a2cb6ed 100644 --- a/website/src/SignUpForm.tsx +++ b/website/src/SignUpForm.tsx @@ -59,9 +59,9 @@ export function SignUpForm() { const data = new FormData(e.currentTarget); const values = { - name: data.get('name').toString(), - email: data.get('email').toString(), - notes: data.get('notes').toString(), + name: data.get('name')?.toString() || '', + email: data.get('email')?.toString() || '', + notes: data.get('notes')?.toString() || '', }; setState('pending');