From e0bdc70843aa427a06d1f1900fe9dbed58446bb3 Mon Sep 17 00:00:00 2001 From: Milli Date: Sun, 5 Jun 2022 01:38:20 +0200 Subject: [PATCH] fix description error --- web/components/contract/contract-info-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index 3e08d4a6..76abec89 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -191,7 +191,7 @@ export function EditableResolutionTime(props: { const newTime = dayjs(timeString).valueOf() if (newTime === time) setIsEditing(false) else if (contract.closeTime && newTime > (contract.closeTime ?? Date.now)) { - const formattedTime = dayjs(time).format('YYYY-MM-DD h:mm a') + const formattedTime = dayjs(newTime).format('YYYY-MM-DD h:mm a') const newDescription = `${contract.description}\n\nAuto resolution date updated to ${formattedTime}` updateContract(contract.id, {