Skip to content

Commit

Permalink
Merge pull request #52 from joziesands/expand-per-page
Browse files Browse the repository at this point in the history
set number of results per page to 200
  • Loading branch information
jasonkalmeida authored Dec 1, 2019
2 parents a1d633d + 63eca3a commit 388a102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function App() {
//Makes API call when zipcode entered
useEffect(() => {
if(currZip != null){
fetch("https://api.mobilize.us/v1/organizations/1316/events?timeslot_start=gte_now&zipcode=" + currZip + "&max_dist=" + currRange)
fetch("https://api.mobilize.us/v1/organizations/1316/events?timeslot_start=gte_now&per_page=200&zipcode=" + currZip + "&max_dist=" + currRange)
.then((res)=>res.json())
.then((data)=>setEvents(data['data']));

Expand Down

0 comments on commit 388a102

Please sign in to comment.