Skip to content

Commit

Permalink
Merge pull request #186 from nguvictor/balance-update-interval
Browse files Browse the repository at this point in the history
switch to 5s update
  • Loading branch information
Radstakes authored Nov 6, 2023
2 parents 74e355e + 593eeb3 commit 67ebc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Home() {
const intervalId = setInterval(() => {
dispatch(fetchBalances());
dispatch(fetchAccountHistory());
}, 1000); // Dispatch every 1000 milliseconds (1 second)
}, 5000); // Dispatch every 5000 milliseconds (5 second)

return () => clearInterval(intervalId); // Cleanup interval on component unmount
}, [dispatch]);
Expand Down

0 comments on commit 67ebc8b

Please sign in to comment.