Skip to content

Commit

Permalink
Code review fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jitendra Gundaniya <[email protected]>
  • Loading branch information
jitu5 committed Jul 19, 2024
1 parent 276b3d3 commit 8d6d4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function resetDataReducer(state = {}, action) {
* @param {Object} action Redux action
* @return {Object} Updated state
*/
function updateStateFromPropsReducer(state = {}, action) {
function updateStateFromOptionsReducer(state = {}, action) {
if (action.type === UPDATE_STATE_FROM_OPTIONS) {
return merge({}, state, action.payload);
}
Expand Down Expand Up @@ -120,7 +120,7 @@ const combinedReducer = combineReducers({

const rootReducer = (state, action) => {
let newState = resetDataReducer(state, action);
newState = updateStateFromPropsReducer(newState, action);
newState = updateStateFromOptionsReducer(newState, action);
return combinedReducer(newState, action);
};

Expand Down

0 comments on commit 8d6d4b6

Please sign in to comment.