diff --git a/frontend/src/pages/Search.js b/frontend/src/pages/Search.js index f11d981..05e00c4 100644 --- a/frontend/src/pages/Search.js +++ b/frontend/src/pages/Search.js @@ -29,11 +29,9 @@ export default function Search() { const [isLoading, SetisLoading] = useState(false); const [users, SetUsers] = useState([]); - // const[query,setQuery]=useState(''); const [resultsEmpty, setResultsEmpty] = useState(false); const onChangeTextHandler = (e) => { - // setQuery(e.target.value); if (!e.target.value) { return; } @@ -106,9 +104,9 @@ export default function Search() { searchHandler={searchHandler} >
- {!isLoading && resultsEmpty &&

0 matching results found

} {isLoading && } - {!isLoading && users.length > 0 && ( + {resultsEmpty &&

0 matching results found

} + {users.length > 0 && (
{users.map((data, index) => (