diff --git a/src/pages/search.jsx b/src/pages/search.jsx index 24b52faa..bb507f1a 100644 --- a/src/pages/search.jsx +++ b/src/pages/search.jsx @@ -87,7 +87,7 @@ function Search(props) { try { const results = await masto.v2.search(params); console.log(results); - if (type) { + if (type && !firstLoad) { if (type === 'statuses') { setStatusResults((prev) => [...prev, ...results.statuses]); } else if (type === 'accounts') { @@ -174,7 +174,7 @@ function Search(props) { <>
-
No accounts found.
+ !type && + (uiState === 'loading' ? ( +
+
No accounts found.
+ )) )} > )} @@ -211,7 +214,7 @@ function Search(props) { <>