Tidy, tidy

This commit is contained in:
Tom Moor
2018-08-10 00:11:58 -07:00
parent 2f681b1ce8
commit 266b4d735c
4 changed files with 36 additions and 43 deletions

View File

@@ -31,10 +31,11 @@ function PublishingInfo({ collection, document }: Props) {
publishedAt,
isDraft,
} = document;
const neverUpdated = publishedAt === updatedAt;
return (
<Container align="center">
{publishedAt && publishedAt === updatedAt ? (
{publishedAt && neverUpdated ? (
<span>
{updatedBy.name} published <Time dateTime={publishedAt} /> ago
</span>