From 19f07e834e68c6924e19589641e5b138b0535e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Sat, 27 May 2023 14:26:14 -0600 Subject: "Done" can now only be changed on table. Not on "edit to do" or "new to do". --- src/features/todo/reducer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/features/todo/reducer.js') diff --git a/src/features/todo/reducer.js b/src/features/todo/reducer.js index d62e599..16fc427 100644 --- a/src/features/todo/reducer.js +++ b/src/features/todo/reducer.js @@ -24,7 +24,7 @@ export const todo_slice = createSlice({ id: ++state.last_id, text: action.payload.text, due_date: action.payload.due_date, - done: action.payload.done, + done: false, priority: action.payload.priority, creation_date: action.payload.creation_date, }, @@ -79,7 +79,6 @@ export const todo_slice = createSlice({ state.todos[selected_todo].text = action.payload.text; state.todos[selected_todo].due_date = action.payload.due_date; - state.todos[selected_todo].done = action.payload.done; state.todos[selected_todo].priority = action.payload.priority; }, -- cgit v1.2.3