From 9bd8393685cb6f2640dd33ee5707f3cb710f1365 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 24 Jul 2024 02:32:05 +0100 Subject: [PATCH] Use consistent index for reading last item (#4817) --- src/view/com/posts/FeedSlice.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/com/posts/FeedSlice.tsx b/src/view/com/posts/FeedSlice.tsx index 3e08f253..b8c9a1f2 100644 --- a/src/view/com/posts/FeedSlice.tsx +++ b/src/view/com/posts/FeedSlice.tsx @@ -56,12 +56,12 @@ let FeedSlice = ({ record={slice.items[last].record} reason={slice.items[last].reason} feedContext={slice.items[last].feedContext} - parentAuthor={slice.items[2].parentAuthor} + parentAuthor={slice.items[last].parentAuthor} showReplyTo={false} moderation={slice.items[last].moderation} isThreadParent={isThreadParentAt(slice.items, last)} isThreadChild={isThreadChildAt(slice.items, last)} - isParentBlocked={slice.items[2].isParentBlocked} + isParentBlocked={slice.items[last].isParentBlocked} isThreadLastChild />