We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f17d5db commit a59218dCopy full SHA for a59218d
src/app/page.tsx
@@ -59,9 +59,9 @@ export default async function Page() {
59
typeof post.author === "string" ? post.author : post.author.id
60
return x.id === authorId
61
})
62
- const publishedDate = new Date(
63
- post.publishedAt ?? post.createdAt ?? new Date()
64
- )
+ const publishedDate = post.publishedAt
+ ? new Date(post.publishedAt)
+ : undefined
65
return {
66
name: post.title,
67
body: post.description,
0 commit comments