mirror of
https://github.com/urosran/cally.git
synced 2025-07-14 17:25:46 +00:00
Added the reccuring todos that repeat weekly to be created for the next 52 weeks
This commit is contained in:
@ -61,9 +61,8 @@ export const useCreateTodo = () => {
|
||||
dates.push(newDate);
|
||||
});
|
||||
|
||||
// TODO: for the next 52 weeks
|
||||
let index = 1;
|
||||
for (let i = 0; i < 4; i++) {
|
||||
for (let i = 0; i < 52; i++) {
|
||||
dates?.forEach((dateToAdd) => {
|
||||
index ++;
|
||||
let newTodoDate = addWeeks(dateToAdd, i);
|
||||
|
Reference in New Issue
Block a user