summaryrefslogtreecommitdiff
path: root/src/redux/github/reducer.js
diff options
context:
space:
mode:
authorKamran Ahmed <kamranahmed.se@gmail.com>2018-08-28 15:47:02 +0500
committerKamran Ahmed <kamranahmed.se@gmail.com>2018-08-28 15:47:02 +0500
commitf441166a3bf27c145a48ae2350cd8cd0931504e9 (patch)
treecad4e80d88d6910cda192ec3f1f0d4d80f71f331 /src/redux/github/reducer.js
parentAlert for token (diff)
downloadgithunt-f441166a3bf27c145a48ae2350cd8cd0931504e9.tar.gz
Refactor and add error handling
Diffstat (limited to 'src/redux/github/reducer.js')
-rw-r--r--src/redux/github/reducer.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/redux/github/reducer.js b/src/redux/github/reducer.js
index 79543b8..0d443f6 100644
--- a/src/redux/github/reducer.js
+++ b/src/redux/github/reducer.js
@@ -1,4 +1,4 @@
-import { FETCH_TRENDING_FAILED, FETCH_TRENDING_SUCCESS, PROCESS_FETCH_TRENDING, UPDATE_FILTERS } from './types';
+import { FETCH_TRENDING_FAILED, FETCH_TRENDING_SUCCESS, PROCESS_FETCH_TRENDING } from './types';
import { UPDATE_DATE_TYPE, UPDATE_LANGUAGE } from '../preference/types';
export const initialState = {
@@ -9,7 +9,6 @@ export const initialState = {
// { start: '', end: '', data: [] }
// ]
repositories: [],
- filters: {},
error: null,
};
@@ -44,11 +43,6 @@ export default function reducer(state = initialState, action) {
processing: false,
error: action.payload
};
- case UPDATE_FILTERS:
- return {
- ...state,
- filters: action.payload
- };
default:
return state;
}