Skip to content

Commit

Permalink
Merge pull request #2002 from oasisprotocol/lw/nonce-refreshing
Browse files Browse the repository at this point in the history
Check account nonce when continuously refreshing balance
  • Loading branch information
lukaw3d authored Jul 12, 2024
2 parents 8e78786 + 402dede commit a3e9801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/2002.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check account nonce when continuously refreshing balance
1 change: 1 addition & 0 deletions src/app/state/account/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export function* fetchingOnAccountPage() {
const staleBalances = yield* select(selectAccount)
const hasPendingTxs = yield* select(hasAccountUnknownPendingTransactions)
if (
staleBalances.nonce !== refreshedAccount.nonce || // If a new transaction fails it won't change balances
staleBalances.available !== refreshedAccount.available ||
staleBalances.delegations !== refreshedAccount.delegations ||
staleBalances.debonding !== refreshedAccount.debonding ||
Expand Down

0 comments on commit a3e9801

Please sign in to comment.