generated from ludops/ludops-skeleton
fix: month and year repeat
Build and Deploy / build-and-push (push) Successful in 1m20s
Details
Build and Deploy / build-and-push (push) Successful in 1m20s
Details
This commit is contained in:
parent
b55edb2749
commit
afb1a8719b
|
|
@ -20,10 +20,10 @@ export const calculateNextDueDate = (task: Task): Date | null => {
|
|||
nextDue.setDate(nextDue.getDate() + amountNum * 7);
|
||||
break;
|
||||
case 'MONTHS':
|
||||
nextDue.setMonth(nextDue.setMonth(nextDue.getMonth() + amountNum));
|
||||
nextDue.setMonth(nextDue.getMonth() + amountNum);
|
||||
break;
|
||||
case 'YEARS':
|
||||
nextDue.setFullYear(nextDue.setFullYear(nextDue.getFullYear() + amountNum));
|
||||
nextDue.setFullYear(nextDue.getFullYear() + amountNum);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue