refactoring description update

This commit is contained in:
Milli 2022-06-03 19:38:14 +02:00
parent c3798a1d48
commit f2d98d9ec1

View File

@ -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<Contract> = {
closeTime: newCloseTime,