Guest User

Untitled

a guest
Aug 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. .then((response) => {
  2. dispatch(actions.updateCountryCounts(response.data))
  3. if (argsObject.initialFetch) {
  4. dispatch(actions.setFilteredCountries(response.data))
  5. }
  6. })
  7. .catch((err) => {
  8. console.log(err)
  9. })
  10.  
  11. .get(`${SERVER_URL}v1/leaderboards/countries.json`, {
  12. params: authParams(email, authentication_token)
  13. })
  14. .then(console.log("good"))
  15. .catch(console.log("bad"))
  16. // dispatch(actions.updateCountryCounts(response.data))
  17. // if (argsObject.initialFetch) {
  18. // dispatch(actions.setFilteredCountries(response.data))
  19. // }
Add Comment
Please, Sign In to add comment