fix: remove income analytics period limit
This commit is contained in:
@@ -138,8 +138,7 @@ function validPeriod(period: IncomePeriod): period is IncomePeriod {
|
||||
from.toISOString().slice(0, 10) === period.from &&
|
||||
to.toISOString().slice(0, 10) === period.to &&
|
||||
from <= to &&
|
||||
to <= today &&
|
||||
(to.valueOf() - from.valueOf()) / 86_400_000 + 1 <= 366
|
||||
to <= today
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user