Skip to content

Commit

Permalink
fix(frontend): submit empty query error
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-kedis authored and AhmedHamed3699 committed May 11, 2024
1 parent 833e3cd commit 0e8d58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mistermeow/app/src/meowapp/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Home() {

const submitHandler = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
console.log("Search button clicked");
if (!query) return;
navigate(`/search/${query}/1`);
};

Expand Down

0 comments on commit 0e8d58e

Please sign in to comment.