From e2a72dd0a23d8721ae4229b03842c58574ecdd6d Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 18 Jul 2022 15:01:50 -0600 Subject: [PATCH] Fix /create date input --- web/pages/create.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/pages/create.tsx b/web/pages/create.tsx index 8d4c3662..a3801223 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -379,12 +379,10 @@ export function NewContract(props: { type={'date'} className="input input-bordered mt-4" onClick={(e) => e.stopPropagation()} - onChange={(e) => - setCloseDate(dayjs(e.target.value).format('YYYY-MM-DD') || '') - } + onChange={(e) => setCloseDate(e.target.value)} min={Date.now()} disabled={isSubmitting} - value={dayjs(closeDate).format('YYYY-MM-DD')} + value={closeDate} />