From 9c0700369d9ab351737d6648341195103c309433 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 5 Jun 2016 16:13:33 -0700 Subject: [PATCH] Fixed publishing info --- src/components/Document/Document.js | 2 +- src/components/PublishingInfo/PublishingInfo.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Document/Document.js b/src/components/Document/Document.js index 2fbac163c..93ea3969a 100644 --- a/src/components/Document/Document.js +++ b/src/components/Document/Document.js @@ -27,8 +27,8 @@ class Document extends React.Component { return (
diff --git a/src/components/PublishingInfo/PublishingInfo.js b/src/components/PublishingInfo/PublishingInfo.js index 36402005f..889161f89 100644 --- a/src/components/PublishingInfo/PublishingInfo.js +++ b/src/components/PublishingInfo/PublishingInfo.js @@ -11,10 +11,10 @@ const PublishingInfo = (props) => { - { props.name } published { moment(props.timestamp).fromNow() } + { props.name } published { moment(props.createdAt).fromNow() } { props.createdAt !== props.updatedAt ? ( -  and modified { moment(props.timestamp).fromNow() } +  and modified { moment(props.updatedAt).fromNow() } ) : null }