1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #288 - Comparisons page does not load at all if address lookup failed.

This commit is contained in:
Jon Ziebell 2020-06-23 22:43:56 -04:00
parent 1f0d6e267b
commit 8c402a54c8

View File

@ -78,7 +78,10 @@ beestat.component.card.my_home.prototype.decorate_region_ = function(parent) {
(new beestat.component.title('Region')).render(parent);
var region;
if (address.normalized !== null) {
if (
address.normalized !== null &&
address.normalized.components !== undefined
) {
region =
address.normalized.components.state_abbreviation ||
address.normalized.components.locality ||