diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index df2b77cf..7226aace 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -429,10 +429,13 @@ function EditableCloseDate(props: { className={isCreator ? 'cursor-pointer' : ''} onClick={() => isCreator && setIsEditingCloseTime(true)} > - {isSameYear - ? dayJsCloseTime.format('MMM D') - : dayJsCloseTime.format('MMM D, YYYY')} - {isSameDay && <> ({fromNow(closeTime)})} + {isSameDay ? ( + {fromNow(closeTime)} + ) : isSameYear ? ( + dayJsCloseTime.format('MMM D') + ) : ( + dayJsCloseTime.format('MMM D, YYYY') + )} )}