Fixed map condition in homepage

This commit is contained in:
Keannu Bernasol 2023-07-07 15:27:52 +08:00
parent 96df2f2f05
commit 9e8317e7c0

View file

@ -47,7 +47,7 @@ export default function Home() {
}; };
function CustomMap() { function CustomMap() {
if (dist !== null && location !== null) { if (dist !== null && location !== null) {
if (dist >= 1) { if (dist <= 1) {
// Just switch this condition for map debugging // Just switch this condition for map debugging
return <MapView style={styles.map} initialRegion={ustpCoords} />; return <MapView style={styles.map} initialRegion={ustpCoords} />;
} else { } else {