Skip to content

Commit

Permalink
✨ Disallow chat if message is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Jul 7, 2023
1 parent fe9bf30 commit 8e09b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const Home: NextPage = () => {
setChatInput("");
await agent?.chat(currentInput);
},
loading: tasks.length == 0,
loading: tasks.length == 0 || chatInput === "",
}
: undefined
}
Expand Down

0 comments on commit 8e09b20

Please sign in to comment.