mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Remove loading screen after getting all important data
This commit is contained in:
parent
96a993ba79
commit
b6e1ce938f
@ -25,17 +25,17 @@ const Startup = (obj) => {
|
||||
dispatch(getBlockchainData());
|
||||
dispatch(getCurrentOrchestratorInfo());
|
||||
});
|
||||
setIsLoaded(true);
|
||||
}
|
||||
|
||||
|
||||
const refreshLogin = () => {
|
||||
console.log("Logging in and getting visitor statistics...");
|
||||
batch(() => {
|
||||
dispatch(login());
|
||||
dispatch(getVisitorStats());
|
||||
});
|
||||
setIsLoaded(true);
|
||||
}
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
refreshLogin();
|
||||
refreshAllZeData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user