Skip to content

Commit

Permalink
Only show last updated if we have updated date
Browse files Browse the repository at this point in the history
  • Loading branch information
MaPoKen committed Jan 22, 2025
1 parent d0c1340 commit c1670e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/ndla-ui/src/Article/ArticleByline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@ export const ArticleByline = ({
{getSuppliersText(suppliers, t)}
</span>
)}
<div data-contributors={showPrimaryContributors}>
{t(`${bylineType}.lastUpdated`)} {published}
</div>
{published ? (
<div data-contributors={showPrimaryContributors}>
{t(`${bylineType}.lastUpdated`)} {published}
</div>
) : null}
</TextWrapper>
)}
{(!!licenseBox || !!footnotes?.length) && (
Expand Down

0 comments on commit c1670e8

Please sign in to comment.