Skip to content

Commit

Permalink
fix: catch missing information about forest type height
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Sep 15, 2020
1 parent 9c344fd commit ff2a659
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/components/ForestTypeDescription/VegetationTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,23 @@ function VegetationTab({ data }) {
</Table.Row>
<Table.Row>
<Table.HeaderCell>{t('forestType.treeLayerHeight')}</Table.HeaderCell>
<Table.Cell>
{data.height[2]}m - {data.height[3]}m
</Table.Cell>
<Table.Cell>
<strong>{t('forestType.coniferTreeHeightMax')}</strong>{' '}
{data.height[0]}m
</Table.Cell>
<Table.Cell>
<strong>{t('forestType.deciduousTreeHeightMax')}</strong>{' '}
{data.height[1]}m
</Table.Cell>
{data.height ? (
<>
<Table.Cell>
{data.height[2]}m - {data.height[3]}m
</Table.Cell>
<Table.Cell>
<strong>{t('forestType.coniferTreeHeightMax')}</strong>{' '}
{data.height[0]}m
</Table.Cell>
<Table.Cell>
<strong>{t('forestType.deciduousTreeHeightMax')}</strong>{' '}
{data.height[1]}m
</Table.Cell>{' '}
</>
) : (
<Table.Cell colSpan="3">-</Table.Cell>
)}
</Table.Row>
<Table.Row>
<Table.HeaderCell>{t('forestType.location')}</Table.HeaderCell>
Expand Down

0 comments on commit ff2a659

Please sign in to comment.