diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index 3a0317a..10f15ca 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -243,8 +243,12 @@ export default function Home() { minZoomLevel={19} zoomTapEnabled initialRegion={{ - latitude: location.coords.latitude, - longitude: location.coords.longitude, + latitude: + student_status?.location?.latitude || + location.coords.latitude, + longitude: + student_status?.location?.longitude || + location.coords.longitude, latitudeDelta: 0.4, longitudeDelta: 0.4, }} @@ -372,11 +376,16 @@ export default function Home() { } )} { const newLocation = e.nativeEvent.coordinate; const distance = GetDistance(