From 05cee78d31ca07bf8dea431b78a7b9b333744621 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 24 Nov 2023 21:15:47 +0800 Subject: [PATCH] Format with Prettier and turn off debug flag --- src/routes/Home/Home.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index efec988..4197170 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -50,7 +50,7 @@ import AnimatedContainerNoScroll from "../../components/AnimatedContainer/Animat export default function Home() { // Switch this condition to see the main map when debugging - const map_distance_override = true; + const map_distance_override = false; const navigation = useNavigation(); const [location, setLocation] = useState(null); const [locationPermitted, setLocationPermitted] = useState(false); @@ -87,9 +87,8 @@ export default function Home() { if (locationPermitted) { let newLocation = await Location.getCurrentPositionAsync(); - setLocation(newLocation); - await DistanceHandler(newLocation); - + setLocation(newLocation); + await DistanceHandler(newLocation); } } @@ -417,7 +416,7 @@ export default function Home() { } else if ( study_groups == undefined || study_groups_global == undefined || - student_statuses == undefined|| + student_statuses == undefined || student_statuses_global == undefined ) { return (