From 4098276ab5ef31f2b79bc644e8a51e7f232dda3c Mon Sep 17 00:00:00 2001 From: Alvaro Date: Wed, 3 Jul 2024 11:38:54 +0200 Subject: [PATCH] Fix stewardship typo in NRC (#690) --- src/components/species-table/species-table-component.jsx | 8 ++++---- src/components/species-table/species-table-selectors.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/species-table/species-table-component.jsx b/src/components/species-table/species-table-component.jsx index 555ee035d..a0cc428e8 100644 --- a/src/components/species-table/species-table-component.jsx +++ b/src/components/species-table/species-table-component.jsx @@ -58,7 +58,7 @@ function SpeciesTable({ }; const renderRow = (index) => { - const { species, speciesgroup, NSPS, percentprotected, stewawrdship } = + const { species, speciesgroup, NSPS, percentprotected, stewardship } = speciesList[index]; const isOpened = expandedRow === index; @@ -95,15 +95,15 @@ function SpeciesTable({
{NSPS}
- {stewawrdship === 1 ? ( + {stewardship === 1 ? ( t('Endemic') ) : ( )}
diff --git a/src/components/species-table/species-table-selectors.js b/src/components/species-table/species-table-selectors.js index 72b583b23..638afb37e 100644 --- a/src/components/species-table/species-table-selectors.js +++ b/src/components/species-table/species-table-selectors.js @@ -61,7 +61,7 @@ export const getSortedSpeciesList = createSelector( speciesModalSort && speciesModalSort.split('-')[0].toLowerCase(); if (sortedCategory === 'stewardship') { - sortedCategory = 'stewawrdship'; + sortedCategory = 'stewardship'; } const direction = speciesModalSort && speciesModalSort.split('-')[1];