diff --git a/app.json b/app.json index 1067359..cd2083f 100644 --- a/app.json +++ b/app.json @@ -38,8 +38,13 @@ "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#202088" }, + "config": { + "googleMaps": { + "apiKey": "AIzaSyDylBhuAOrAusZzyiVUm9NRWgk83Jzc6vY" + } + }, "googleServicesFile": "./google-services.json", - "versionCode": 7 + "versionCode": 8 }, "web": { "favicon": "./assets/favicon.png" diff --git a/src/screens/calendar/event.tsx b/src/screens/calendar/event.tsx index 9ad5b96..539d315 100644 --- a/src/screens/calendar/event.tsx +++ b/src/screens/calendar/event.tsx @@ -106,7 +106,7 @@ export default function EventScreen({ route, navigation }: Props) { authState.authenticated === Authed.AUTHENTICATED ? await authState.token : null; - if (!slots || slots.length === 0) setSlots(await getSlots(token)); + if (!slots || slots.length === 0) setSlots((await getSlots(token)).slots); const slot = slots!.findIndex((slot) => isSameDay(