fix range
This commit is contained in:
@@ -21,7 +21,7 @@ export function RangePeriod({
|
|||||||
}: RangePeriodProps) {
|
}: RangePeriodProps) {
|
||||||
const [, setSearchParams] = useSearchParams()
|
const [, setSearchParams] = useSearchParams()
|
||||||
const prevPeriod = billingPeriod(billingDay, subMonths(startDate, 1))
|
const prevPeriod = billingPeriod(billingDay, subMonths(startDate, 1))
|
||||||
const nextPeriod = billingPeriod(billingDay, addMonths(endDate, 1))
|
const nextPeriod = billingPeriod(billingDay, addMonths(startDate, 1))
|
||||||
const [nextDate] = nextPeriod
|
const [nextDate] = nextPeriod
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user