Merge pull request #2806 from poanetwork/vb-blocks-fetching-main-page-fix

Fix blocks fetching on the main page
pull/2826/head
Victor Baranov 5 years ago committed by GitHub
commit de9bb5787f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/assets/js/pages/chain.js

@ -5,6 +5,7 @@
- [#2449](https://github.com/poanetwork/blockscout/pull/2449) - add ability to send notification events through postgres notify - [#2449](https://github.com/poanetwork/blockscout/pull/2449) - add ability to send notification events through postgres notify
### Fixes ### Fixes
- [#2806](https://github.com/poanetwork/blockscout/pull/2806) - Fix blocks fetching on the main page
- [#2803](https://github.com/poanetwork/blockscout/pull/2803) - Fix block validator custom tooltip - [#2803](https://github.com/poanetwork/blockscout/pull/2803) - Fix block validator custom tooltip
### Chore ### Chore

@ -68,10 +68,10 @@ function baseReducer (state = initialState, action) {
return Object.assign({}, state, { blocksLoading: false }) return Object.assign({}, state, { blocksLoading: false })
} }
case 'BLOCKS_FETCHED': { case 'BLOCKS_FETCHED': {
return Object.assign({}, state, { blocks: [...action.msg.blocks] }) return Object.assign({}, state, { blocks: [...action.msg.blocks], blocksLoading: false })
} }
case 'BLOCKS_REQUEST_ERROR': { case 'BLOCKS_REQUEST_ERROR': {
return Object.assign({}, state, { blocksError: true }) return Object.assign({}, state, { blocksError: true, blocksLoading: false })
} }
case 'RECEIVED_NEW_EXCHANGE_RATE': { case 'RECEIVED_NEW_EXCHANGE_RATE': {
return Object.assign({}, state, { return Object.assign({}, state, {

Loading…
Cancel
Save