Skip to content

Commit

Permalink
fix: transaction cancel speed up modal should disappear after transac…
Browse files Browse the repository at this point in the history
…tion is confirmed (MetaMask#10362)
  • Loading branch information
jpuri authored Jul 22, 2024
1 parent 4c8bce7 commit c916912
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/components/UI/Transactions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ class Transactions extends PureComponent {

componentDidUpdate() {
this.updateBlockExplorer();
if (
this.props.confirmedTransactions.some(
({ id }) => id === this.existingTx?.id,
)
) {
this.onSpeedUpCompleted();
this.onCancelCompleted();
}
}

init() {
Expand Down

0 comments on commit c916912

Please sign in to comment.