feat: Show 'None' for empty event descriptions in view and admin pages

This commit is contained in:
Starstrike
2025-05-01 14:58:18 -04:00
parent e0de661050
commit 3e9e1d835a
2 changed files with 2 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ const EventAdmin: React.FC = () => {
<Box sx={{ mb: 4 }}>
<Typography variant="subtitle1" gutterBottom>
<strong>Info:</strong> {event.description}
<strong>Info:</strong> {event.description || 'None'}
</Typography>
<Typography variant="subtitle1" gutterBottom>
<strong>Location:</strong> {event.location}

View File

@@ -169,7 +169,7 @@ const EventView: React.FC = () => {
<Box sx={{ mb: 4 }}>
<Typography variant="subtitle1" gutterBottom>
<strong>Info:</strong> {event.description}
<strong>Info:</strong> {event.description || 'None'}
</Typography>
<Typography variant="subtitle1" gutterBottom>
<strong>Location:</strong> {event.location}