<commit_before>import {combineReducers} from 'redux';
import {INVALIDATE_OFFERS, REQUEST_OFFERS, RECEIVE_OFFERS} from 'actions/OffersActions';

import offer from './OffersReducer.js';

function offers(state = {}, action) {
  switch (action.type) {
    case REQUEST_OFFERS:
    case RECEIVE_OFFERS:
    case INVALIDATE_OFFERS:
      return offer(state.offer, action);
    default:
      return state;
  }
}

const travelApp = combineReducers({
  offers
});

export default travelApp;<commit_msg>Fix state inconsistence<commit_after>import {combineReducers} from 'redux';
import {FILTER_OFFER, INVALIDATE_OFFERS, REQUEST_OFFERS, RECEIVE_OFFERS} from 'actions/OffersActions';

import _ from 'lodash';

import offers from './OffersReducer.js';

const travelApp = combineReducers({
  offers
});

export default travelApp;
{'fraction_non_alphanumeric': 0.10416666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2955659', 'n_tokens_mistral': 274, 'n_tokens_neox': 267, 'n_words': 64}