Only fill street address from ZIP lookup if delivery point verified

This commit is contained in:
Skylar Ittner 2022-05-20 14:13:36 -06:00
parent 7e769d53f9
commit ef75a6376e

View File

@ -181,7 +181,10 @@ function doZipCodeLookup(street, city, state) {
app.dialog.close();
if (resp.status == "OK") {
app.popup.close();
$("#to_street1").val(resp.address.address);
if (resp.address.dpv_confirmed) {
// If an exact deliverable match was found, fill in the verified street address
$("#to_street1").val(resp.address.address);
}
$("#to_zip").val(resp.address.zip);
app.input.checkEmptyState('#to_street1');
app.input.checkEmptyState('#to_zip');