aboutsummaryrefslogtreecommitdiff
path: root/modern/src/other/EventPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/other/EventPage.js')
-rw-r--r--modern/src/other/EventPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js
index 8adc142c..c8d84d5e 100644
--- a/modern/src/other/EventPage.js
+++ b/modern/src/other/EventPage.js
@@ -83,7 +83,7 @@ const EventPage = () => {
<IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => navigate('/')}>
<ArrowBackIcon />
</IconButton>
- <Typography variant="h6">{formatType(event)}</Typography>
+ <Typography variant="h6">{event && formatType(event)}</Typography>
</Toolbar>
</AppBar>
<div className={classes.mapContainer}>