Skip to content

Commit

Permalink
Merge pull request #2 from SteveLabrinos/development
Browse files Browse the repository at this point in the history
chenged current position api call
  • Loading branch information
SteveLabrinos authored Feb 6, 2021
2 parents 1b9608f + 2fc6d07 commit 9c8528b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/store/actions/currentPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ const fetchCityFail = error => {
};

export const fetchCity = () => dispatch => {
axios.get('https://geolocation-db.com/json')
axios.get('http://api.ipstack.com/check?access_key=8f0513df0cc0f66506cad2a187e485d6')
.then(response => {
// console.log(response.data);
const city = {
name: response.data.city,
coordinates: [response.data.longitude, response.data.latitude]
Expand Down

0 comments on commit 9c8528b

Please sign in to comment.