4noobs-web
4noobs-web copied to clipboard
Search for space
I'm pretty sure that you can search just by adding a "space" to the search input. To avoid this kind of behavior, the best thing to do is to trim() the input value. Also, I guess that you want to validate it before allowing users to submit the search.
https://github.com/MatheusFC2/4noobs-web/blob/d34991dfa666647184e14fd8c75e61ce2f1edaac/src/pages/Cursos.jsx#L40