Skip to content

Commit

Permalink
data-page-headings-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Oct 17, 2023
1 parent 6537b57 commit 131be19
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions site/DataPageV2Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ export const DataPageV2Content = ({
datapageData.descriptionShort) && (
<div className="key-info__curated">
<h2 className="key-info__title">
{datapageData?.descriptionKey
{datapageData?.descriptionKey &&
datapageData?.descriptionKey
.length > 0
? "What you should know about this indicator"
: "About this data"}
</h2>
Expand Down Expand Up @@ -224,7 +226,11 @@ export const DataPageV2Content = ({
)}
{datapageData.descriptionFromProducer && (
<ExpandableToggle
label={`How does the producer of this data - ${datapageData.attributionShort} - describe this data?`}
label={
datapageData.attributionShort
? `How does the producer of this data - ${datapageData.attributionShort} - describe this data?`
: "How does the producer of this data describe this data?"
}
content={
<ArticleBlocks
blocks={[
Expand Down

0 comments on commit 131be19

Please sign in to comment.