fix: Hide Info field in event card when description is empty

This commit is contained in:
Starstrike
2025-05-01 14:48:24 -04:00
parent dae96f70b1
commit bb5f28c304

View File

@@ -112,9 +112,11 @@ const EventList: React.FC = () => {
size="small" size="small"
/> />
</Box> </Box>
<Typography variant="body2" color="text.secondary"> {event.description && (
<strong>Info:</strong> {event.description} <Typography variant="body2" color="text.secondary">
</Typography> <strong>Info:</strong> {event.description}
</Typography>
)}
<Typography variant="body2" color="text.secondary"> <Typography variant="body2" color="text.secondary">
<strong>Date:</strong> {new Date(event.date).toLocaleString()} <strong>Date:</strong> {new Date(event.date).toLocaleString()}
</Typography> </Typography>