diff --git a/src/components/calendar.tsx b/src/components/calendar.tsx index ccab16d..e8002f1 100644 --- a/src/components/calendar.tsx +++ b/src/components/calendar.tsx @@ -81,6 +81,9 @@ function renderStatus(event: any) { } function renderLocation(location: any) { + if (location == null) { + return "To Be Confirmed"; + } return location.name + " (" + location.postcode + ")"; }