Skip to content

Commit

Permalink
Merge pull request #29 from ProxiBlue/github_28_api_error_blocks_chec…
Browse files Browse the repository at this point in the history
…kout

Fix to not block checkout on maps API error
  • Loading branch information
wsajosh authored Nov 30, 2021
2 parents 3eb8ea3 + 6ddf3fc commit 82e567b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/frontend/web/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ define([

var googleMapError = false;
window.gm_authFailure = function() {
$('input[name^="street"]').prop('disabled', false).prop('placeholder', '').removeAttr("style")
google.maps.event.clearInstanceListeners($('input[name^="street"]')[0]);
$(".pac-container").remove();
googleMapError = true;
};

Expand Down

0 comments on commit 82e567b

Please sign in to comment.