From f58126e630cbac5034bdf8c74feaf2eab1c5d710 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 27 Jan 2022 14:31:09 -0600 Subject: [PATCH] create: remove default close date --- web/pages/create.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/pages/create.tsx b/web/pages/create.tsx index d651a7be..42e7d44f 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -72,12 +72,12 @@ export function NewContract(props: { question: string; tag?: string }) { const [anteError, setAnteError] = useState() // By default, close the market a week from today - const weekFromToday = dayjs().add(7, 'day').format('YYYY-MM-DD') - const [closeDate, setCloseDate] = useState(weekFromToday) + // const weekFromToday = dayjs().add(7, 'day').format('YYYY-MM-DD') + const [closeDate, setCloseDate] = useState(undefined) const [isSubmitting, setIsSubmitting] = useState(false) - const closeTime = dateToMillis(closeDate) + const closeTime = closeDate ? dateToMillis(closeDate) : undefined const balance = creator?.balance || 0