aboutsummaryrefslogtreecommitdiff
path: root/react-frontend/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'react-frontend/src/App.js')
-rw-r--r--react-frontend/src/App.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/react-frontend/src/App.js b/react-frontend/src/App.js
index c9451a9..0a6e6c1 100644
--- a/react-frontend/src/App.js
+++ b/react-frontend/src/App.js
@@ -48,9 +48,11 @@ function App() {
})
.then(res => res.json())
.then(data => {
- setData(data.holders);
+ //TODO: optimize this
+ const sliced = data.holders.slice(0, 500);
+ console.log(sliced);
+ setData(sliced);
setHasLoaded(true);
- console.log(data.holders);
})
.catch(err => console.log(err));
@@ -59,7 +61,7 @@ function App() {
// Hooks to update data on init and switching of data
- useEffect(() => getGraphData(), []);
+ //useEffect(() => getGraphData(), []);
useEffect(() => {
setIsChanging(true);
getGraphData();