Skip to content

Commit 86562b7

Browse files
WORLDSERVICE-336: Add conditional check (#12504)
1 parent ef6473d commit 86562b7

File tree

1 file changed

+6
-2
lines changed
  • src/app/legacy/containers/ArticleMetadata

1 file changed

+6
-2
lines changed

src/app/legacy/containers/ArticleMetadata/index.jsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ const ArticleMetadata = ({
3939
hasAmpPage={hasAmpPage}
4040
>
4141
<meta name="article:author" content={author} />
42-
<meta name="article:modified_time" content={lastPublished} />
43-
<meta name="article:published_time" content={firstPublished} />
42+
{lastPublished && (
43+
<meta name="article:modified_time" content={lastPublished} />
44+
)}
45+
{firstPublished && (
46+
<meta name="article:published_time" content={firstPublished} />
47+
)}
4448
{section && <meta name="article:section" content={section} />}
4549
</Metadata>
4650
)

0 commit comments

Comments
 (0)