From eea4a5c13769201b7b67a7cc6abb7a73f5dbcfa1 Mon Sep 17 00:00:00 2001 From: rishit-singh Date: Sat, 6 Jan 2024 20:33:24 -0800 Subject: [PATCH] Fixed Event image fetching --- frontend/src/app/thunks/EventThunks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/thunks/EventThunks.ts b/frontend/src/app/thunks/EventThunks.ts index 77a6378..cac48c4 100644 --- a/frontend/src/app/thunks/EventThunks.ts +++ b/frontend/src/app/thunks/EventThunks.ts @@ -17,7 +17,7 @@ export const fetchEventsAsync = () => async (state: RootState, dispatch: AppDisp End: new Date(item.End), Description: item.Description, Location: item.Location, - Image: (item.Image != null) ? `https://${process.env.APIURL}/Images/${item.Image}` : "https://via.placeholder.com/800x800", + Image: (item.Image != null) ? `https://${process.env.APIURL}/${item.Image}` : "https://via.placeholder.com/800x800", Link: { Google: item.Link.Google, Apple: item.Link.Apple } } as CalendarEvent; });