From 63eca3a54a1de36c54096a732dc22cac31c78b8d Mon Sep 17 00:00:00 2001 From: Jo Sands Date: Mon, 25 Nov 2019 20:20:31 -0600 Subject: [PATCH] set 200 results per_page --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 06b0eb1..a250fb1 100644 --- a/src/App.js +++ b/src/App.js @@ -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']));