Skip to content

Commit

Permalink
Fix: LCFS - BUG - year selection when creating a new compliance report
Browse files Browse the repository at this point in the history
  • Loading branch information
prv-proton committed Jan 2, 2025
1 parent 53ad496 commit 4de880f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const NewComplianceReportButton = ({
const yearAhead = currentYear + 1
return periods?.data.filter((item) => {
const effectiveYear = new Date(item.effectiveDate).getFullYear()
return effectiveYear <= yearAhead && effectiveYear >= currentYear
return effectiveYear <= yearAhead && effectiveYear >= 2024
})
}

Expand Down

0 comments on commit 4de880f

Please sign in to comment.