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) { function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
return dispatch => { return dispatch => {
if (preview) { if (preview) {
@ -3110,7 +3111,7 @@ function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
if (!preview) { if (!preview) {
dispatch({ dispatch({
type: ABANDON_CLAIM_SUPPORT_COMPLETED, 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()); dispatch(doCheckPendingTxs());
} }
@ -3210,7 +3211,7 @@ const doCheckPendingTxs = () => (dispatch, getState) => {
const state = getState(); const state = getState();
const pendingTxsById = selectPendingSupportTransactions(state); // {} const pendingTxsById = selectPendingSupportTransactions(state); // {}
const pendingOtherTxes = selectPendingOtherTransactions(state); const pendingOtherTxes = selectPendingOtherTransactions(state);
//
if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) { if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) {
return; return;
} }
@ -5978,7 +5979,6 @@ const walletReducer = handleActions({
}, },
[FETCH_UTXO_COUNT_COMPLETED]: (state, action) => { [FETCH_UTXO_COUNT_COMPLETED]: (state, action) => {
// thing
return _extends$d({}, state, { return _extends$d({}, state, {
utxoCounts: action.data, utxoCounts: action.data,
fetchingUtxoCounts: false fetchingUtxoCounts: false

View file

@ -428,6 +428,7 @@ export function doWalletLock() {
}; };
} }
// Collect all tips for a claim
export function doSupportAbandonForClaim(claimId, claimType, keep, preview) { export function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
return dispatch => { return dispatch => {
if (preview) { if (preview) {
@ -448,7 +449,7 @@ export function doSupportAbandonForClaim(claimId, claimType, keep, preview) {
if (!preview) { if (!preview) {
dispatch({ dispatch({
type: ACTIONS.ABANDON_CLAIM_SUPPORT_COMPLETED, 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()); dispatch(doCheckPendingTxs());
} }
@ -554,7 +555,7 @@ export const doCheckPendingTxs = () => (dispatch, getState) => {
const state = getState(); const state = getState();
const pendingTxsById = selectPendingSupportTransactions(state); // {} const pendingTxsById = selectPendingSupportTransactions(state); // {}
const pendingOtherTxes = selectPendingOtherTransactions(state); const pendingOtherTxes = selectPendingOtherTransactions(state);
//
if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) { if (!Object.keys(pendingTxsById).length && !pendingOtherTxes.length) {
return; return;
} }

View file

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