We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3177d1 commit db7065cCopy full SHA for db7065c
backend/src/data/eventData.ts
@@ -87,14 +87,14 @@ export async function fetchEvent(id: string) {
87
if (!response.ok) {
88
throw new Error(`Couldn't fetch details for event ${id}\n${JSON.stringify(response.json())}`);
89
}
90
- const res: Result<FacebookEvent, FacebookError> = await response.json();
+ const res: FacebookEvent = await response.json();
91
92
return new EventInfo(
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
0 commit comments