Skip to content

Commit

Permalink
Fix stewardship typo in NRC (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 authored Jul 3, 2024
1 parent acb10fe commit 4098276
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/species-table/species-table-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -95,15 +95,15 @@ function SpeciesTable({
<div className={styles.tableItem}>{NSPS}</div>
<div
className={cx(styles.tableItem, {
[styles.bold]: stewawrdship === 1,
[styles.bold]: stewardship === 1,
})}
>
{stewawrdship === 1 ? (
{stewardship === 1 ? (
t('Endemic')
) : (
<T
_str="{stewardship} countries"
stewardship={stewawrdship}
stewardship={stewardship}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/species-table/species-table-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4098276

Please sign in to comment.