Skip to content

Commit

Permalink
fix: Country code
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkwr committed Oct 16, 2024
1 parent 1fefb10 commit 992f66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/address-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ define([
delay: 400,
url: function (params) {
const queryParams = new URLSearchParams({
country: $(self.countrySelector).val(),
country: $(self.countrySelector).val()?.toUpperCase(),
limit: searchLimit,
offset: ((params.page || 1) - 1) * searchLimit,
q: unescape(params.term)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ define([
delay: 400,
url: function (params) {
const queryParams = new URLSearchParams({
country: self.countryCode(),
country: self.countryCode()?.toUpperCase(),
limit: searchLimit,
offset: ((params.page || 1) - 1) * searchLimit,
q: unescape(params.term)
Expand Down

0 comments on commit 992f66b

Please sign in to comment.