Skip to content

Commit

Permalink
Fix bug in getter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed May 8, 2018
1 parent 16c766c commit f1f547d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/state/data-getters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,5 @@ export const requestGeoLocation = () =>
method: 'GET',
url: 'https://public-api.wordpress.com/geo/',
} ),
{
fromApi: () => ( { body: { country_short } } ) => [
[ 'geo', parseInt( country_short, 10 ) ],
],
}
{ fromApi: () => ( { body: { country_short } } ) => [ [ 'geo', country_short ] ] }
);

0 comments on commit f1f547d

Please sign in to comment.