From ed9943c7ade210c40cb1cb5076c8a21e364bea0c Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Mon, 25 Mar 2024 14:05:49 +0100 Subject: [PATCH] null --- website/src/SignUpForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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');