summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-12-22 17:03:07 -0800
committerMark Wells <mark@freeside.biz>2015-12-22 17:06:44 -0800
commitc8f4149f2dc5a1f593a6ba422181c3d433cc6ef7 (patch)
tree1133aaa1a6c7abb750583aaba890ccfbf06ad938 /httemplate/elements
parent3f7f6b5fa717facf9c63edc480071debfc02a33a (diff)
improve handling of internal errors from US Census geocoding, #39549
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/standardize_locations.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js
index b824fb249..0c4fb029a 100644
--- a/httemplate/elements/standardize_locations.js
+++ b/httemplate/elements/standardize_locations.js
@@ -114,7 +114,12 @@ function confirm_standardize(arg) {
// then all entered address fields are correct
// but we still need to set the lat/long fields and addr_clean
- status_message('Verified');
+
+ if ( returned['addr_clean'] ) {
+ status_message('Verified');
+ } else {
+ status_message('Unverified');
+ }
replace_address();
} else {