Added the reccuring todos that repeat weekly to be created for the next 52 weeks

This commit is contained in:
Dejan
2024-11-04 23:32:13 +01:00
parent 5beadcce01
commit dbfe7d6e9c
2 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,7 @@ export const useUpdateTodo = () => {
dates.push(newDate);
});
let todosToAddCycles = 4;
let todosToAddCycles = 52;
if (firstTodo?.repeatType === REPEAT_TYPE.EVERY_WEEK) {
todosToAddCycles = filteredTodos?.length / firstTodo?.repeatDays?.length;
}