Commit 92f4eee6 authored by Loic Baron's avatar Loic Baron
Browse files

Fixed address as Resources Location


(cherry picked from commit b7d223e54ad42dfc8ce67399ae169bce79567f60)
parent 3af6e728
Pipeline #580 canceled with stage
......@@ -118,9 +118,11 @@ class RegisterResourceStore {
hasCity(location){
if(Object.keys(this.location).length > 0){
for(let type of location.types){
if(type=="locality"){
return true;
for(let component of location.address_components){
for(let type of component.types){
if(type=="locality"){
return true;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment