diff --git a/src/components/calendar/event-modal.tsx b/src/components/calendar/event-modal.tsx
index cb76062..798f5bc 100644
--- a/src/components/calendar/event-modal.tsx
+++ b/src/components/calendar/event-modal.tsx
@@ -152,18 +152,19 @@ export default function EventModal({
{type === "calendar" && (
)}
-
- {event.building && event.room && (
-
- )}
+
+ {(event.building && event.room) ||
+ (event.place && (
+
+ ))}
{type === "calendar" && event.link && (
{
return {
- title: event.title,
+ title: event.category.course
+ ? `[${event.category.course?.shortname}] ${event.title}`
+ : event.title,
start: moment(event.start).toDate(),
end: moment(event.end).toDate(),
allDay: event.allDay,
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 5dfc575..50de85c 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -85,7 +85,7 @@ export interface IEvent {
category: IEventCategory;
start: string;
end: string;
- place: string;
+ place?: string;
link?: string;
eventColor: string;
textColor: string;
@@ -98,7 +98,7 @@ export interface IEventResponse {
category: IEventCategory;
start: string;
end: string;
- place: string;
+ place?: string;
link?: string;
}