Only fill street address from ZIP lookup if delivery point verified
This commit is contained in:
parent
7e769d53f9
commit
ef75a6376e
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user