This commit is contained in:
zeppi 2021-01-04 17:20:27 -05:00
parent b5cc1f8818
commit 3b523980de
3 changed files with 6 additions and 6 deletions

6
dist/bundle.es.js vendored
View file

@ -3091,6 +3091,7 @@ function doWalletUnlock(password) {
};
}
// Collect all tips for a claim
function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
return dispatch => {
if (preview) {
@ -3110,7 +3111,7 @@ function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
if (!preview) {
dispatch({
type: ABANDON_CLAIM_SUPPORT_COMPLETED,
data: { claimId, txid: res.txid, effective: res.outputs[0].amount, type: claimType } // add to pendingSupportTransactions,
data: { claimId, txid: res.txid, effective: res.outputs[0].amount, type: claimType }
});
dispatch(doCheckPendingTxs());
}
@ -3210,7 +3211,7 @@ const doCheckPendingTxs = () => (dispatch, getState) => {
const state = getState();
const pendingTxsById = selectPendingSupportTransactions(state); // {}
const pendingOtherTxes = selectPendingOtherTransactions(state);
//
if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) {
return;
}
@ -5978,7 +5979,6 @@ const walletReducer = handleActions({
},
[FETCH_UTXO_COUNT_COMPLETED]: (state, action) => {
// thing
return _extends$d({}, state, {
utxoCounts: action.data,
fetchingUtxoCounts: false

View file

@ -428,6 +428,7 @@ export function doWalletLock() {
};
}
// Collect all tips for a claim
export function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
return dispatch => {
if (preview) {
@ -448,7 +449,7 @@ export function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
if (!preview) {
dispatch({
type: ACTIONS.ABANDON_CLAIM_SUPPORT_COMPLETED,
data: { claimId, txid: res.txid, effective: res.outputs[0].amount, type: claimType }, // add to pendingSupportTransactions,
data: { claimId, txid: res.txid, effective: res.outputs[0].amount, type: claimType },
});
dispatch(doCheckPendingTxs());
}
@ -554,7 +555,7 @@ export const doCheckPendingTxs = () => (dispatch, getState) => {
const state = getState();
const pendingTxsById = selectPendingSupportTransactions(state); // {}
const pendingOtherTxes = selectPendingOtherTransactions(state);
//
if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) {
return;
}

View file

@ -155,7 +155,6 @@ export const walletReducer = handleActions(
},
[ACTIONS.FETCH_UTXO_COUNT_COMPLETED]: (state: WalletState, action) => {
// thing
return {
...state,
utxoCounts: action.data,