Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
fix(geolocalisation): use correct column name
Browse files Browse the repository at this point in the history
  • Loading branch information
tglatt committed Nov 23, 2020
1 parent 37c1ee0 commit 41e1f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/services/getGeoDatas.js
Expand Up @@ -15,7 +15,7 @@ module.exports = async (code_postal, ville) => {
if (!geoDatas.length) {
return {};
}
let geoData = geoDatas.find((el) => el.ville === ville.toUpperCase().trim());
let geoData = geoDatas.find((el) => el.cities === ville.toUpperCase().trim());
if (!geoData) {
geoData = geoDatas[0];
}
Expand Down

0 comments on commit 41e1f18

Please sign in to comment.