aboutsummaryrefslogtreecommitdiffstats
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
commit1cf10289b840d6fc56986d114fd762da75f4b103 (patch)
tree0c2c3fbed89fd37300af6813913f2f5e295fe984
parent7c967ae84b2f5620d3efed2ce1e93551ddbde04a (diff)
downloadcoinos-ui-1cf10289b840d6fc56986d114fd762da75f4b103.tar.gz
coinos-ui-1cf10289b840d6fc56986d114fd762da75f4b103.zip
filter out payments with no lat/lon
-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 = [