Skip to content

Commit beeda0c

Browse files
committed
require Zone field capital letter
1 parent a2201f3 commit beeda0c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

middleware/zones.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ function findZones(lon, lat, regions) {
116116
for (const key in regions) {
117117
for (const feature of regions[key].features) {
118118
if (isInFeature(lon, lat, feature)) {
119-
const zoneKey = Object.keys(feature.properties).find(k => k.toLowerCase() === 'zone');
120-
zones.push(key + ':' + feature.properties[zoneKey]); // new hit
119+
zones.push(key + ':' + feature.properties.Zone); // new hit
121120
}
122121
}
123122
}

0 commit comments

Comments
 (0)