aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-13 22:27:50 -0700
committerAdam Soltys <[email protected]>2023-04-13 22:27:50 -0700
commitd1fb3883ec6ce79285253ca5676cb77297274522 (patch)
tree0c2c3fbed89fd37300af6813913f2f5e295fe984 /src/components
parent345b85a72e7708f953867fd93429f0678f1cbccd (diff)
downloadcoinos-ui-d1fb3883ec6ce79285253ca5676cb77297274522.tar.gz
coinos-ui-d1fb3883ec6ce79285253ca5676cb77297274522.zip
filter out payments with no lat/lon
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LocationsMap.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index 20ef8878..d84fa4ae 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -38,7 +38,7 @@
locations = locations.filter(
(location) =>
- location['osm_json'].tags && location['osm_json'].tags['payment:coinos'] === 'yes'
+ location['osm_json'].tags && location['osm_json'].tags['payment:coinos'] === 'yes' && location.lat && location.lon
);
/* const locations = [