From 1836c4493221b83cc657f17429e69ea3dd0d0c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 23 Feb 2026 16:53:12 +0100 Subject: [PATCH] nicolium: remove unreachable code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/pages/accounts/account-timeline.tsx | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/packages/pl-fe/src/pages/accounts/account-timeline.tsx b/packages/pl-fe/src/pages/accounts/account-timeline.tsx index 0d57cf5d4..b6abf27db 100644 --- a/packages/pl-fe/src/pages/accounts/account-timeline.tsx +++ b/packages/pl-fe/src/pages/accounts/account-timeline.tsx @@ -41,8 +41,7 @@ const AccountTimelinePage: React.FC = () => { }), ); - const isBlocked = account?.relationship?.blocked_by; - const unavailable = isBlocked && !features.blockersVisible; + const isBlocked = account?.relationship?.blocked_by && !features.blockersVisible; const isLoading = useAppSelector((state) => state.timelines[`account:${path}`]?.isLoading); const hasMore = useAppSelector((state) => state.timelines[`account:${path}`]?.hasMore); @@ -80,23 +79,16 @@ const AccountTimelinePage: React.FC = () => { return ; } - if (unavailable) { + if (isBlocked) { return ( - {isBlocked ? ( - - ) : ( - - )} +