diff --git a/html/static/js/address-or-report-suggestion.js b/html/static/js/address-or-report-suggestion.js index 3f169626..cf82e66a 100644 --- a/html/static/js/address-or-report-suggestion.js +++ b/html/static/js/address-or-report-suggestion.js @@ -172,13 +172,13 @@ class AddressOrReportInput extends HTMLElement { } else if (type == "address") { const index = parseInt(el.dataset.index); const address = this._addresses[index]; - this.SetValue(suggestion); + this.SetValue(address); // Dispatch custom event this.dispatchEvent(new CustomEvent('address-selected', { bubbles: true, composed: true, // Allows event to cross shadow DOM boundary detail: { - location: suggestion + location: address } })); }