Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MarynaOzkara committed Sep 24, 2023
2 parents d4a781d + 944ad24 commit 1cedc71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Searchbar/Searchbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ const handleChange = ({target: {value}}) => {

const handleSubmit = (e) => {
e.preventDefault();
const searchQuery = query.trim();
console.log(searchQuery);

const searchQuery = query.trim();
if(!searchQuery){
return alert(`Type your query to start serch images!`);
}
Expand Down Expand Up @@ -73,4 +72,4 @@ const handleSubmit = (e) => {
// )
// }
// };
export default Searchbar;
export default Searchbar;

0 comments on commit 1cedc71

Please sign in to comment.