feat: Show 'None' for empty event descriptions in view and admin pages
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user