Skip to content

Commit

Permalink
fix: todo with date are reminders
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Victor committed Jun 7, 2023
1 parent e14246d commit 6298508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/slices/todoSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const createTodoSlice: StateCreator<TodoSlice> = (set) => ({
setTodoDate: (id, date) => {
set((state) => ({
todos: state.todos.map((todo) =>
todo.id === id ? { ...todo, date } : todo
todo.id === id ? { ...todo, reminder: true, date } : todo
),
}));
},
Expand Down

0 comments on commit 6298508

Please sign in to comment.