From 6b1ffffce91fcad23548e63b6f912f855f46df0c Mon Sep 17 00:00:00 2001
From: gpp-0 <52042597+gpp-0@users.noreply.github.com>
Date: Fri, 8 Nov 2024 06:19:52 +0200
Subject: Fix non-home screen soft resetting when feed is selected from right
 nav (#6158)

---
 src/view/shell/desktop/Feeds.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/shell/desktop/Feeds.tsx')

diff --git a/src/view/shell/desktop/Feeds.tsx b/src/view/shell/desktop/Feeds.tsx
index 2f5f95427..bb6b8cadd 100644
--- a/src/view/shell/desktop/Feeds.tsx
+++ b/src/view/shell/desktop/Feeds.tsx
@@ -41,7 +41,7 @@ export function DesktopFeeds() {
             onPress={() => {
               setSelectedFeed(feed)
               navigation.navigate('Home')
-              if (feed === selectedFeed) {
+              if (route.name === 'Home' && feed === selectedFeed) {
                 emitSoftReset()
               }
             }}
-- 
cgit 1.4.1

