Fixed distance calculation rounding down to 0 and reduced distance threshhold to 1km

This commit is contained in:
Keannu Christian Bernasol 2023-10-10 22:54:29 +08:00
parent f53056f932
commit 3208c37a86
2 changed files with 2 additions and 2 deletions

View file

@ -15,6 +15,6 @@ export default function GetDistanceFromUSTP(location: LocationType) {
ustpCoords.latitude,
ustpCoords.longitude
);
dist = Math.round(dist);
dist = Math.round(dist * 100) / 100;
return dist;
}