Skip to content

Commit af4d1cf

Browse files
committed
fix: correct published date reference in UserArticleFeed component
1 parent ca09fe4 commit af4d1cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/[username]/(profile-page)/articles/UserArticleFeed.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const UserArticleFeed: React.FC<UserArticleFeedProps> = ({ userId }) => {
2828
"handle",
2929
"cover_image",
3030
"body",
31+
"published_at",
3132
"created_at",
3233
"excerpt",
3334
]
@@ -73,7 +74,7 @@ const UserArticleFeed: React.FC<UserArticleFeedProps> = ({ userId }) => {
7374
username: article?.user?.username ?? "",
7475
is_verified: Boolean(article?.user?.is_verified),
7576
}}
76-
publishedAt={article?.created_at?.toDateString() ?? ""}
77+
publishedAt={article?.published_at?.toDateString() ?? ""}
7778
readingTime={readingTime(article?.body ?? "")}
7879
/>
7980
))}

0 commit comments

Comments
 (0)