Skip to content

Commit 81e5ad0

Browse files
committed
fix
1 parent c59464a commit 81e5ad0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const BoardPost: React.FC<BoardPostProps> = ({ post, setSelectedPost }) => {
107107
<div className="mt-4">
108108
<Image
109109
src={proxyUrl}
110+
alt="attachment image"
110111
className="w-full"
111112
width={1200}
112113
height={600}
@@ -115,7 +116,7 @@ const BoardPost: React.FC<BoardPostProps> = ({ post, setSelectedPost }) => {
115116
)}
116117
<div className="text-cyan-200">
117118
Created at{" "}
118-
{formatDistanceToNow(parseISO(post.createdAt), {
119+
{formatDistanceToNow(parseISO(post.createdAt.toString()), {
119120
addSuffix: true,
120121
})}
121122
</div>

0 commit comments

Comments
 (0)