Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .then((response) => {
- dispatch(actions.updateCountryCounts(response.data))
- if (argsObject.initialFetch) {
- dispatch(actions.setFilteredCountries(response.data))
- }
- })
- .catch((err) => {
- console.log(err)
- })
- .get(`${SERVER_URL}v1/leaderboards/countries.json`, {
- params: authParams(email, authentication_token)
- })
- .then(console.log("good"))
- .catch(console.log("bad"))
- // dispatch(actions.updateCountryCounts(response.data))
- // if (argsObject.initialFetch) {
- // dispatch(actions.setFilteredCountries(response.data))
- // }
Add Comment
Please, Sign In to add comment