Don't render unecessarily date of birth
This commit is contained in:
		@@ -33,9 +33,13 @@ export function MemberItem(p: {
 | 
			
		||||
            {p.member?.dead && <Icon path={mdiCross} size={"1rem"} />}
 | 
			
		||||
          </>
 | 
			
		||||
        }
 | 
			
		||||
        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 && (
 | 
			
		||||
        <ListItemSecondaryAction>{p.secondary}</ListItemSecondaryAction>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user