aboutsummaryrefslogtreecommitdiff
path: root/react-frontend/src/components/WatchDogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'react-frontend/src/components/WatchDogs.js')
-rw-r--r--react-frontend/src/components/WatchDogs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/react-frontend/src/components/WatchDogs.js b/react-frontend/src/components/WatchDogs.js
index dfe47c8..f7a9e74 100644
--- a/react-frontend/src/components/WatchDogs.js
+++ b/react-frontend/src/components/WatchDogs.js
@@ -51,6 +51,11 @@ function WatchDogs() {
//TODO: optimize this
//const sliced = data.holders.slice(0, 500);
//console.log(sliced);
+ console.log(data);
+ if(data.holders.length === 0) {
+ alert("There is no data between those timeframes :(");
+ return;
+ }
setData(data.holders);
setHasLoaded(true);
})