Skip to content

Commit

Permalink
National tables to display not assessed for establishment stage and p…
Browse files Browse the repository at this point in the history
…rotection level columns
  • Loading branch information
SARodrigues committed Aug 13, 2024
1 parent 9e4fc19 commit 8c8c7e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ const useColumns = ({ filters, onFiltersChange }: UseColumnsProps) => {
cell: ({ row }) => {
const { establishmentStage: value } = row.original;
const formattedValue =
establishmentStageOptions.find((entry) => value === entry?.value)?.name || t('n-a');
establishmentStageOptions.find((entry) => value === entry?.value)?.name ||
t('not-assessed');
return <>{formattedValue}</>;
},
},
Expand All @@ -234,7 +235,8 @@ const useColumns = ({ filters, onFiltersChange }: UseColumnsProps) => {
cell: ({ row }) => {
const { protectionLevel: value } = row.original;
const formattedValue =
protectionLevelOptions.find((entry) => value === entry?.value)?.name || t('n-a');
protectionLevelOptions.find((entry) => value === entry?.value)?.name ||
t('not-assessed');
return <>{formattedValue}</>;
},
},
Expand Down
1 change: 1 addition & 0 deletions frontend/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
"iucn-category": "IUCN Categories",
"mpas": "MPAs",
"n-a": "N/A",
"not-assessed": "Not assessed",
"oecms": "OECMs",
"fully-highly-protected": "Fully/Highly Protected",
"global-contribution": "Global contribution",
Expand Down

0 comments on commit 8c8c7e1

Please sign in to comment.