diff --git a/src/components/OutDatedCallOut.astro b/src/components/OutDatedCallOut.astro index ff09685..833525d 100644 --- a/src/components/OutDatedCallOut.astro +++ b/src/components/OutDatedCallOut.astro @@ -7,8 +7,8 @@ const dateDelta = dateNow - lastUpdated const Day = 1000 * 60 * 60 * 24 const daysDelta = Math.round(dateDelta / Day) --- -{ daysDelta >= 30 && - - This article was updated on {daysDelta} days ago. The content may be outdated. - +{ ( lastUpdatedAt && daysDelta >= 30 ) && + + This article was updated {daysDelta} days ago. The content may be outdated. + } \ No newline at end of file