From f2d98d9ec15b7a9b6783bd78a8a06e9d2619220a Mon Sep 17 00:00:00 2001 From: Milli Date: Fri, 3 Jun 2022 19:38:14 +0200 Subject: [PATCH] refactoring description update --- web/components/contract/contract-details.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index f54b1c06..ea9fd0e4 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -218,7 +218,9 @@ function EditableCloseDate(props: { const { description, autoResolutionTime } = contract const formattedCloseDate = dayjs(newCloseTime).format('YYYY-MM-DD h:mm a') const newAutoResolutionTime = newCloseTime + 7 * DAY_MS - let newDescription = `${description}\n\nClose date updated to ${formattedCloseDate}` + let newDescription = description.concat( + `\n\nClose date updated to ${formattedCloseDate}` + ) const update: Partial = { closeTime: newCloseTime,