Remove isBroadcasting from top-level wallet state (#190)

isBroadcasting is kept at the BroadcastTransactionStatus level, with a different state for each transaction.
This commit is contained in:
Daniel Ternyak 2017-09-14 15:22:07 -07:00 committed by GitHub
parent a5f2c5e2e9
commit 8b286b5e8c
1 changed files with 0 additions and 2 deletions

View File

@ -25,7 +25,6 @@ export const INITIAL_STATE: State = {
inst: null, inst: null,
balance: null, balance: null,
tokens: {}, tokens: {},
isBroadcasting: false,
transactions: [] transactions: []
}; };
@ -118,7 +117,6 @@ export function wallet(
case 'WALLET_BROADCAST_TX_REQUESTED': case 'WALLET_BROADCAST_TX_REQUESTED':
return { return {
...state, ...state,
isBroadcasting: true,
transactions: handleBroadcastTxRequested(state, action.payload.signedTx) transactions: handleBroadcastTxRequested(state, action.payload.signedTx)
}; };
case 'WALLET_BROADCAST_TX_SUCCEEDED': case 'WALLET_BROADCAST_TX_SUCCEEDED':