diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte index 966d9c73d..69c596273 100644 --- a/src/components/Thread.svelte +++ b/src/components/Thread.svelte @@ -115,7 +115,7 @@ author={reply.author} caption="replied" reactions={reply.reactions} - timestamp={reply.edits.slice(-1)[0].timestamp} + timestamp={reply.edits[0].timestamp} body={reply.edits.slice(-1)[0].body} editComment={editComment && canEditComment(reply.author.did) && diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index 76bf73996..ae512e18c 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -69,10 +69,7 @@ root: thread, replies: issue.discussion .filter(comment => comment.replyTo === thread.id) - .sort( - (a, b) => - a.edits.slice(-1)[0].timestamp - b.edits.slice(-1)[0].timestamp, - ), + .sort((a, b) => a.edits[0].timestamp - b.edits[0].timestamp), }; }, []);