Skip to content

Commit

Permalink
fix timer
Browse files Browse the repository at this point in the history
  • Loading branch information
elshan-eth committed Feb 27, 2024
1 parent 3c48630 commit cab1924
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ function App() {

useEffect(() => {
console.log("nerwork: " + network.name);
dispatch(fetchNextHalvePeriod(network.name));
if (!merkleRootFetched && network?.name && network.name !== "unknown") {
dispatch(fetchMerkleRoot(network.name));
dispatch(fetchCurrentAward(network.name));
dispatch(fetchNextHalvePeriod(network.name));
setMerkleRootFetched(true);
}
}, [network]);
Expand Down
Loading

0 comments on commit cab1924

Please sign in to comment.