Skip to content

Commit

Permalink
Merge pull request #20 from experianplc/fix_address_validate
Browse files Browse the repository at this point in the history
Fix validate endpoint
  • Loading branch information
AndreanVeselinov authored Apr 16, 2024
2 parents 9bd9baa + 7f1e3fa commit 06d1ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/address-metadata-display.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/js/address-metadata-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ address.events.on("post-enrichment", function (data) {
// Display and populate the "metadata" container
function populateMetadata(data) {
// Try and get some geocoded enrichment data
address.getEnrichmentData(data.enrichment);
if (data.enrichment != null) {
address.getEnrichmentData(data.enrichment);
}

const confidence = data.result.confidence;
if (confidence) {
Expand Down

0 comments on commit 06d1ece

Please sign in to comment.