Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrinank-Bhowmick committed Oct 4, 2024
2 parents 0330088 + 2fb683c commit 2839541
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/heroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export function HeroSection() {
e: React.MouseEvent<HTMLDivElement, MouseEvent>
) => {
e.preventDefault;
//------ If prompt or input is empty
if(prompt.length === 0 ) {
alert("Prompt can not be empty") ;
}

setResult("Loading...");
const res = fetch("https://toxicity.bhowmickmrinank.workers.dev/", {
method: "POST",
Expand Down

0 comments on commit 2839541

Please sign in to comment.