diff --git a/geneit_app/src/widgets/MemberItem.tsx b/geneit_app/src/widgets/MemberItem.tsx index acc2fcb..4b4fdaa 100644 --- a/geneit_app/src/widgets/MemberItem.tsx +++ b/geneit_app/src/widgets/MemberItem.tsx @@ -33,9 +33,13 @@ export function MemberItem(p: { {p.member?.dead && } } - secondary={`${fmtDate(p.member?.dateOfBirth)} - ${fmtDate( - p.member?.dateOfDeath - )}`} + secondary={ + p.member?.dead + ? `${fmtDate(p.member?.dateOfBirth)} - ${fmtDate( + p.member?.dateOfDeath + )}` + : fmtDate(p.member?.dateOfBirth) + } /> {p.secondary && ( {p.secondary}