create: remove default close date

This commit is contained in:
mantikoros 2022-01-27 14:31:09 -06:00
parent 9acb07aa14
commit f58126e630

View File

@ -72,12 +72,12 @@ export function NewContract(props: { question: string; tag?: string }) {
const [anteError, setAnteError] = useState<string | undefined>() const [anteError, setAnteError] = useState<string | undefined>()
// By default, close the market a week from today // By default, close the market a week from today
const weekFromToday = dayjs().add(7, 'day').format('YYYY-MM-DD') // const weekFromToday = dayjs().add(7, 'day').format('YYYY-MM-DD')
const [closeDate, setCloseDate] = useState(weekFromToday) const [closeDate, setCloseDate] = useState<undefined | string>(undefined)
const [isSubmitting, setIsSubmitting] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false)
const closeTime = dateToMillis(closeDate) const closeTime = closeDate ? dateToMillis(closeDate) : undefined
const balance = creator?.balance || 0 const balance = creator?.balance || 0