From 3d5e3a80b29574f718e76c532f3f821c69d31ace Mon Sep 17 00:00:00 2001 From: tony-blockchain Date: Fri, 22 Feb 2019 14:35:17 +0000 Subject: [PATCH] fix(BCH): fixed errors during BCH/BSV error processing --- .../blockchain-wallet-v4/src/redux/data/bch/reducers.js | 7 +++---- .../blockchain-wallet-v4/src/redux/data/bsv/reducers.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/blockchain-wallet-v4/src/redux/data/bch/reducers.js b/packages/blockchain-wallet-v4/src/redux/data/bch/reducers.js index 9ca5bbf6160..3ec4c287e1a 100755 --- a/packages/blockchain-wallet-v4/src/redux/data/bch/reducers.js +++ b/packages/blockchain-wallet-v4/src/redux/data/bch/reducers.js @@ -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) } diff --git a/packages/blockchain-wallet-v4/src/redux/data/bsv/reducers.js b/packages/blockchain-wallet-v4/src/redux/data/bsv/reducers.js index 7e34a33bbf4..b870fb52348 100755 --- a/packages/blockchain-wallet-v4/src/redux/data/bsv/reducers.js +++ b/packages/blockchain-wallet-v4/src/redux/data/bsv/reducers.js @@ -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) }