Skip to content

Commit

Permalink
update recognition Reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrasbunde committed May 26, 2020
1 parent 5ed4a45 commit 3035421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react-frontend/src/reducers/recognitionReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const defaultState = [{}];
export default (state = defaultState, action) => {
switch (action.type) {
case "GET_RECOGNITION_LIST_SUCCESS":
return action.value;
return action.payload;
case "GET_RECOGNITION_LIST_FAILURE":
return action.value;
return action.payload;
default:
return state;
}
Expand Down

0 comments on commit 3035421

Please sign in to comment.