Skip to content

Commit

Permalink
[NO-TASK]: Update on screens on foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
Danswar committed Nov 13, 2024
1 parent f13ba54 commit 12a4b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions screen/wallets/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const Asset = ({ navigation }) => {

const setTxRefreshInterval = () => {
clearTxRefreshInterval();
refreshTransactions();
txRefreshInterval.current = setInterval(() => {
refreshTransactions();
}, 20 * 1000);
Expand Down
1 change: 1 addition & 0 deletions screen/wallets/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const WalletHome = ({ navigation }) => {
const setBalanceRefreshInterval = () => {
if (!wallets) return;
clearBalanceRefreshInterval();
refreshBalances().catch(console.error);
balanceRefreshInterval.current = setInterval(() => {
refreshBalances().catch(console.error);
}, 20 * 1000);
Expand Down

0 comments on commit 12a4b1b

Please sign in to comment.