mirror of
https://github.com/beestat/app.git
synced 2025-06-03 05:36:51 -04:00
Fixed #288 - Comparisons page does not load at all if address lookup failed.
This commit is contained in:
parent
1f0d6e267b
commit
8c402a54c8
@ -78,7 +78,10 @@ beestat.component.card.my_home.prototype.decorate_region_ = function(parent) {
|
|||||||
(new beestat.component.title('Region')).render(parent);
|
(new beestat.component.title('Region')).render(parent);
|
||||||
|
|
||||||
var region;
|
var region;
|
||||||
if (address.normalized !== null) {
|
if (
|
||||||
|
address.normalized !== null &&
|
||||||
|
address.normalized.components !== undefined
|
||||||
|
) {
|
||||||
region =
|
region =
|
||||||
address.normalized.components.state_abbreviation ||
|
address.normalized.components.state_abbreviation ||
|
||||||
address.normalized.components.locality ||
|
address.normalized.components.locality ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user