Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
berat-yilmaz committed Apr 30, 2024
1 parent 9b0498d commit 7bc4963
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/src/components/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const SearchBar = () => {
const handleSearch = async () => {
try {
const results = await search(searchTerm);
if (searchTerm =='')
if (results.team != null) {
navigate("/team/" + results.team.id);
}
Expand Down

0 comments on commit 7bc4963

Please sign in to comment.