about summary refs log tree commit diff
path: root/src/view/com/posts/CustomFeedEmptyState.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/posts/CustomFeedEmptyState.tsx')
-rw-r--r--src/view/com/posts/CustomFeedEmptyState.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/view/com/posts/CustomFeedEmptyState.tsx b/src/view/com/posts/CustomFeedEmptyState.tsx
index e51794e7c..e83a94f03 100644
--- a/src/view/com/posts/CustomFeedEmptyState.tsx
+++ b/src/view/com/posts/CustomFeedEmptyState.tsx
@@ -11,6 +11,7 @@ import {MagnifyingGlassIcon} from 'lib/icons'
 import {NavigationProp} from 'lib/routes/types'
 import {usePalette} from 'lib/hooks/usePalette'
 import {s} from 'lib/styles'
+import {isWeb} from 'platform/detection'
 
 export function CustomFeedEmptyState() {
   const pal = usePalette('default')
@@ -18,8 +19,12 @@ export function CustomFeedEmptyState() {
   const navigation = useNavigation<NavigationProp>()
 
   const onPressFindAccounts = React.useCallback(() => {
-    navigation.navigate('SearchTab')
-    navigation.popToTop()
+    if (isWeb) {
+      navigation.navigate('Search', {})
+    } else {
+      navigation.navigate('SearchTab')
+      navigation.popToTop()
+    }
   }, [navigation])
 
   return (