Skip to content

Commit

Permalink
Merge pull request #1476 from blockchain/fix/bch_bsv_failure_processing
Browse files Browse the repository at this point in the history
fix(BCH): fixed errors during BCH/BSV error processing
  • Loading branch information
plondon authored Feb 22, 2019
2 parents 6df64d3 + 3d5e3a8 commit ca7382d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions packages/blockchain-wallet-v4/src/redux/data/bch/reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ const bchReducer = (state = INITIAL_STATE, action) => {
return merge(state, data)
}
case AT.FETCH_BCH_DATA_FAILURE: {
const { addresses, info, latest_block } = payload
const data = {
addresses: Remote.Failure(addresses),
info: Remote.Failure(info),
latest_block: Remote.Failure(latest_block)
addresses: Remote.Failure(payload),
info: Remote.Failure(payload),
latest_block: Remote.Failure(payload)
}
return merge(state, data)
}
Expand Down
7 changes: 3 additions & 4 deletions packages/blockchain-wallet-v4/src/redux/data/bsv/reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ const bsvReducer = (state = INITIAL_STATE, action) => {
return merge(state, data)
}
case AT.FETCH_BSV_DATA_FAILURE: {
const { addresses, info, latest_block } = payload
const data = {
addresses: Remote.Failure(addresses),
info: Remote.Failure(info),
latest_block: Remote.Failure(latest_block)
addresses: Remote.Failure(payload),
info: Remote.Failure(payload),
latest_block: Remote.Failure(payload)
}
return merge(state, data)
}
Expand Down

0 comments on commit ca7382d

Please sign in to comment.