Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 32e6d2f

Browse files
committed
Making sure Martinique, French Guiana, Guadeloupe count as France
1 parent cbcd4ae commit 32e6d2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/js/events.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ var Codeweek = window.Codeweek || {};
8080
document.getElementById("autocomplete").value = results[0].formatted_address;
8181
// the last item in the geocoder for latLng results array is the country
8282
var country = results.slice(-1)[0].address_components.slice(-1)[0].short_name;
83-
83+
var frenchColonies = ['MQ', 'GF', 'GP'] // Martinique, French Guiana, Guadeloupe
84+
if (frenchColonies.indexOf(country) >= 0) {
85+
country = 'FR';
86+
}
8487
updateCountrySelection(country);
8588
}
8689
});

0 commit comments

Comments
 (0)