From eccba3208d9ed4e1fa680f56b7510fe906795a3c Mon Sep 17 00:00:00 2001 From: Juan Cazala Date: Thu, 27 Sep 2018 12:17:12 -0300 Subject: [PATCH] fix: keep replaced txs in watch loop --- src/modules/transaction/sagas.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/transaction/sagas.ts b/src/modules/transaction/sagas.ts index d84df5e8..98a0c493 100644 --- a/src/modules/transaction/sagas.ts +++ b/src/modules/transaction/sagas.ts @@ -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) )