This commit is contained in:
Kenneth Jannette
2024-01-12 18:18:07 -06:00
parent 9cf2111b51
commit a597a407e8
6 changed files with 2 additions and 8 deletions

View File

@@ -3,7 +3,6 @@ export const useGroupReducer = (state, action) => {
case "CREATE_GROUP":
return { ...state, group: action.payload };
case "UPDATE_GROUP_NAME":
console.log("state, action.payload", state, action.payload);
return [...state, { name: action.payload }];
case "DELETE_GROUP":
return { ...state, group: null };
@@ -17,7 +16,6 @@ export const useDataReducer = (state, action) => {
case "CREATE_CASES":
return { ...state, cases: action.payload };
case "UPDATE_GROUP_NAME":
console.log("state, action.payload", state, action.payload);
return [...state, { cases: action.payload }];
default:
return state;