We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente3177d1 commitdb7065cCopy full SHA for db7065c
backend/src/data/eventData.ts
@@ -87,14 +87,14 @@ export async function fetchEvent(id: string) {
87
if(!response.ok){
88
thrownewError(`Couldn't fetch details for event${id}\n${JSON.stringify(response.json())}`);
89
}
90
-constres:Result<FacebookEvent,FacebookError>=awaitresponse.json();
+constres:FacebookEvent=awaitresponse.json();
91
92
returnnewEventInfo(
93
-res.value.id,
94
-res.value.name,
95
-res.value.start_time,
96
-res.value.end_time,
97
-res.value.place?.name??DEFAULT_EVENT_LOCATION,
98
-res.value.cover?.source??DEFAULT_EVENT_IMAGE
+res.id,
+res.name,
+res.start_time,
+res.end_time,
+res.place?.name??DEFAULT_EVENT_LOCATION,
+res.cover?.source??DEFAULT_EVENT_IMAGE
99
);
100