From c64289af865b404d43b1d47edfe61650a0476cd6 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 16 Dec 2021 01:26:35 -0800 Subject: [PATCH] Make descriptions optional --- web/pages/create.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/pages/create.tsx b/web/pages/create.tsx index cd656240..1f2fc3ae 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -22,8 +22,8 @@ export default function NewContract() { const [isSubmitting, setIsSubmitting] = useState(false) async function submit() { - // TODO: add more rigorous error handling for question, description - if (!creator || !question || !description) return + // TODO: add more rigorous error handling for question + if (!creator || !question) return setIsSubmitting(true) @@ -69,7 +69,7 @@ export default function NewContract() {