delete claim from byId while it's in pending status

This commit is contained in:
Sean Yesmunt 2018-11-01 09:35:16 -04:00
parent 33bf92299d
commit 0e13dd1972
2 changed files with 2 additions and 0 deletions

1
dist/bundle.js vendored
View file

@ -5253,6 +5253,7 @@ reducers[ACTIONS.FETCH_CLAIM_LIST_MINE_COMPLETED] = function (state, action) {
if (claim.type && claim.type.match(/claim|update/)) { if (claim.type && claim.type.match(/claim|update/)) {
if (claim.confirmations < 1) { if (claim.confirmations < 1) {
pendingById[claim.claim_id] = claim; pendingById[claim.claim_id] = claim;
delete byId[claim.claim_id];
} else { } else {
byId[claim.claim_id] = claim; byId[claim.claim_id] = claim;
} }

View file

@ -58,6 +58,7 @@ reducers[ACTIONS.FETCH_CLAIM_LIST_MINE_COMPLETED] = (state, action) => {
if (claim.type && claim.type.match(/claim|update/)) { if (claim.type && claim.type.match(/claim|update/)) {
if (claim.confirmations < 1) { if (claim.confirmations < 1) {
pendingById[claim.claim_id] = claim; pendingById[claim.claim_id] = claim;
delete byId[claim.claim_id];
} else { } else {
byId[claim.claim_id] = claim; byId[claim.claim_id] = claim;
} }