Skip to content

Commit

Permalink
Debugged something that did not let favorite work
Browse files Browse the repository at this point in the history
  • Loading branch information
Aredros committed Aug 11, 2023
1 parent 8ce69e6 commit 81a3b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/assets/components/DailyDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ interface ITodos {
archived: boolean;
subTask: ITSubtaskTodo[];
failed: boolean;
favorite: boolean;
}
interface ITSubtaskTodo {
subTaskCompleted: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface TodoItemProps {
archived: boolean;
subTask: ITSubtaskTodo[];
failed: boolean;
favorite: boolean;
};
}
interface ITSubtaskTodo {
Expand Down Expand Up @@ -54,6 +55,7 @@ export const DuplicateItemButton = (props: TodoItemProps) => {
archived: todo.archived,
subTask: todo.subTask,
failed: todo.failed,
favorite: todo.favorite,
};

const updatedTodos = allTodos ? [...allTodos, newTodo] : [newTodo];
Expand Down

0 comments on commit 81a3b3e

Please sign in to comment.