From be0559ea21fc6d473bab384651cbae8b06b3ca62 Mon Sep 17 00:00:00 2001 From: sverben <59171289+sverben@users.noreply.github.com> Date: Sat, 25 May 2024 16:04:15 +0200 Subject: [PATCH] fix: maps crash android --- app.json | 7 ++++++- src/screens/calendar/event.tsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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(