Skip to content

Commit

Permalink
Merge pull request #2713 from bcgov/fix/kevin-remove-2023-compliance-…
Browse files Browse the repository at this point in the history
…option-2553

Fix/kevin remove 2023 compliance option 2553
  • Loading branch information
AlexZorkin committed Nov 2, 2023
2 parents 17c9916 + 369da7c commit a3781b9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ const ComplianceReportingPage = (props) => {
<span className='sr-only'>Toggle Dropdown</span>
</button>
<ul className='dropdown-menu'>
{props.compliancePeriods.map((compliancePeriod) => (
{props.compliancePeriods.map((compliancePeriod) => {
if (compliancePeriod.description >= 2023) return null
return (
<li key={compliancePeriod.description}>
{compliancePeriod.description <= 2023 && (
<button
onClick={() => {
const found = items.findIndex(
Expand All @@ -248,9 +249,9 @@ const ComplianceReportingPage = (props) => {
>
{compliancePeriod.description}
</button>
)}
</li>
))}
)
})}
</ul>
</div>

Expand Down

0 comments on commit a3781b9

Please sign in to comment.