Skip to content

Commit

Permalink
Fixed passing rules to geolocationAutoCompleteAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
omninando committed May 24, 2019
1 parent e2879f0 commit 98a41d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Passing `rules` instead of `rules.geolocation` to `geolocationAutoCompleteAddress` since it uses the root object in the function

## [3.5.11] - 2019-05-20

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
},
"scripts": {
"postreleasy": "vtex publish --public && npm publish"
}
}
},
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}
2 changes: 1 addition & 1 deletion react/geolocation/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function getAddressByGeolocation(geolocationProps) {
const autoCompletedAddress = geolocationAutoCompleteAddress(
address,
googleAddress,
rules.geolocation,
rules,
)

onChangeAddress({
Expand Down

0 comments on commit 98a41d0

Please sign in to comment.