about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-22 10:49:53 -0700
committerPaul Frazee <pfrazee@gmail.com>2023-08-22 10:49:53 -0700
commit17fcc2f25ccfac612b63b808282da9436fc4f947 (patch)
tree7fe1e31a33c7b47a0d48165ebabb66915f509a31 /src
parent88357d5c82aa5afd17a846f34d08b1b30ccff761 (diff)
parentd3f525ab28c0187260226b56c53324f9ea3a1833 (diff)
downloadvoidsky-17fcc2f25ccfac612b63b808282da9436fc4f947.tar.zst
Merge branch 'fix-empty-search' of https://github.com/darnfish/social-app into darnfish-fix-empty-search
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/SearchMobile.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/screens/SearchMobile.tsx b/src/view/screens/SearchMobile.tsx
index 6a2fca5bc..3b5f771a5 100644
--- a/src/view/screens/SearchMobile.tsx
+++ b/src/view/screens/SearchMobile.tsx
@@ -79,6 +79,8 @@ export const SearchScreen = withAuthRequired(
     }, [setQuery, autocompleteView, store])
 
     const onSubmitQuery = React.useCallback(() => {
+      if (query.length === 0) return
+
       const model = new SearchUIModel(store)
       model.fetch(query)
       setSearchUIModel(model)