doc: add SET_USER case
This commit is contained in:
@@ -33,6 +33,12 @@ const reducer = (state, action) => {
|
||||
basket: newBasket,
|
||||
};
|
||||
|
||||
case "SET_USER":
|
||||
return {
|
||||
...state,
|
||||
user: action.user,
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user