diff --git a/client/src/store/ExchangeRate/exchange.reducer.js b/client/src/store/ExchangeRate/exchange.reducer.js index 112299fd9..94ef93516 100644 --- a/client/src/store/ExchangeRate/exchange.reducer.js +++ b/client/src/store/ExchangeRate/exchange.reducer.js @@ -5,6 +5,7 @@ import t from 'store/types'; const initialState = { exchangeRates: {}, loading: false, + views: {}, tableQuery: { page_size: 5, page: 1, @@ -26,17 +27,15 @@ const reducer = createReducer(initialState, { }, [t.EXCHANGE_RATE_TABLE_LOADING]: (state, action) => { - const { loading } = action.payload; state.loading = loading; }, - [t.ESTIMATES_PAGE_SET]: (state, action) => { + [t.EXCHANGE_RATES_PAGE_SET]: (state, action) => { const { customViewId, exchange_rates, pagination } = action.payload; const viewId = customViewId || -1; const view = state.views[viewId] || {}; - state.views[viewId] = { ...view, pages: {