Skip to content

Commit

Permalink
fix: keep replaced txs in watch loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Sep 27, 2018
1 parent c8e94b5 commit eccba32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/transaction/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ function* handleFetchTransactionRequest(action: FetchTransactionRequestAction) {
let isUnknown = tx == null

// loop while tx is pending
while (isUnknown || isPending(tx.type)) {
while (
isUnknown ||
isPending(tx.type) ||
tx.type === txUtils.TRANSACTION_TYPES.replaced // let replaced transactions be kept in the loop so it can be picked up as dropped
) {
const txInState: Transaction = yield select(state =>
getTransaction(state, hash)
)
Expand Down

0 comments on commit eccba32

Please sign in to comment.