Skip to content

Commit

Permalink
show enrichment if no geocodes but aus cvhousehol
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgiDobrilov committed Mar 9, 2024
1 parent d1ea0b0 commit e3eea5f
Show file tree
Hide file tree
Showing 2 changed files with 2 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.

2 changes: 1 addition & 1 deletion src/js/address-metadata-display.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Display a map with the lat/long details after a data enrichment lookup
address.events.on("post-enrichment", function (data) {
let enrichmentElement = document.querySelector("#enrichment");
if (address.geocodes.detailsMap.size > 0 || (data.result.what3words && data.result.what3words.latitude)) {
if (address.geocodes.detailsMap.size > 0 || (data.result.what3words && data.result.what3words.latitude) || address.cvHousehold.detailsMap.size > 0) {
document.querySelector(".metadata #what3words-key").classList.add("hidden");
document.querySelector(".metadata #what3words-value").classList.add("hidden");

Expand Down

0 comments on commit e3eea5f

Please sign in to comment.