Skip to content

Commit

Permalink
fix: maps crash android
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed May 25, 2024
1 parent 4bf812e commit be0559e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/calendar/event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit be0559e

Please sign in to comment.