mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 18:16:17 +00:00
Added the reccuring todos that repeat weekly to be created for the next 52 weeks
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user