Skip to content

Commit

Permalink
fix: remove wrong check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuelongh committed Jan 19, 2024
1 parent b8fbabe commit 6b31778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 4.10.3
- Fix: remove wrong check for get_jurisdictions

### 4.10.2
- Fix: Differentiate state-overview for country and Region Page
- Fix: Put back Other category to National Designations
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/designations_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_jurisdictions(jurisdiction)

# As 20 DEC 2023 Not Applicable is now showing as a category for country page
# https://unep-wcmc.codebasehq.com/projects/protected-planet-support-and-maintenance/tickets/337#update-73110217
if @is_regional == true
if @is_regional
Jurisdiction.where(name: jurisdiction == 'National' ? ['National', 'Not Applicable'] : jurisdiction)
else
Jurisdiction.where(name: jurisdiction)
Expand Down

0 comments on commit 6b31778

Please sign in to comment.