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"
/>
</Box>
<Typography variant="body2" color="text.secondary">
<strong>Info:</strong> {event.description}
</Typography>
{event.description && (
<Typography variant="body2" color="text.secondary">
<strong>Info:</strong> {event.description}
</Typography>
)}
<Typography variant="body2" color="text.secondary">
<strong>Date:</strong> {new Date(event.date).toLocaleString()}
</Typography>