From 4de880ff368b71da40e3eaa1fcff7d603fb23ad2 Mon Sep 17 00:00:00 2001 From: prv-proton Date: Thu, 2 Jan 2025 09:51:29 -0800 Subject: [PATCH] Fix: LCFS - BUG - year selection when creating a new compliance report #1577 --- .../ComplianceReports/components/NewComplianceReportButton.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/ComplianceReports/components/NewComplianceReportButton.jsx b/frontend/src/views/ComplianceReports/components/NewComplianceReportButton.jsx index 1fd1fef87..87ebc8254 100644 --- a/frontend/src/views/ComplianceReports/components/NewComplianceReportButton.jsx +++ b/frontend/src/views/ComplianceReports/components/NewComplianceReportButton.jsx @@ -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 }) }