Skip to content

Commit

Permalink
fix(BCH): fixed errors during BCH/BSV error processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-blockchain committed Feb 22, 2019
1 parent 7b62450 commit 3d5e3a8
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 3d5e3a8

Please sign in to comment.