diff --git a/app/internal_packages/contacts/lib/ContactDetailRead.tsx b/app/internal_packages/contacts/lib/ContactDetailRead.tsx index b48b313d9..e2507c504 100644 --- a/app/internal_packages/contacts/lib/ContactDetailRead.tsx +++ b/app/internal_packages/contacts/lib/ContactDetailRead.tsx @@ -149,7 +149,11 @@ const ContactAttributes = ({
- {new Date(item.date.year, item.date.month - 1, item.date.day).toLocaleDateString()} + { // If there is no year given, solely display the month and day + item.date.year ? + new Date(item.date.year, item.date.month - 1, item.date.day).toLocaleDateString() : + new Date(new Date().getFullYear(), item.date.month - 1, item.date.day).toLocaleDateString(undefined, { month: 'numeric', day: 'numeric' }) + }
))}