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