Skip to content

Commit

Permalink
fix: disable button when message is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSahitya authored and afeefuddin committed Jul 4, 2024
1 parent 05a2783 commit 6fd1cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ function ChatpageInner() {
onClick={() => {
handleClick();
}}
disabled={chatState === "busy" || fetchingChat ? true : false}
disabled={
chatState === "busy" || fetchingChat || !message ? true : false
}
>
<FiArrowRight />
</Button>
Expand Down

0 comments on commit 6fd1cba

Please sign in to comment.