Skip to content

Commit

Permalink
Fix authReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
VenEleni committed Aug 26, 2024
1 parent 8c259d3 commit b4cedec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/reducers/authReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const authReducer = (state = initialState, action) => {
error: null,
};
console.log("Success - New state:", newStateOnSuccess);
return newState;
return newStateOnSuccess;
case REGISTER_FAIL:
case LOGIN_FAIL:
console.log("Fail - Reducer action payload:", action.payload);
Expand All @@ -74,7 +74,7 @@ const authReducer = (state = initialState, action) => {
error: action.payload,
};
console.log("Fail - New state:", newStateOnFailure);
return newState;
return newStateOnFailure;
case LOG_OUT:
return {
...state,
Expand Down

0 comments on commit b4cedec

Please sign in to comment.