Skip to content

Commit

Permalink
fix: page no longer refreshes on stop generating button
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Apr 9, 2023
1 parent 5fbefa1 commit 83d0443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Input/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default function TextChat({ isSearchView = false }) {
setText('');
};

const handleStopGenerating = () => {
const handleStopGenerating = (e) => {
e.preventDefault();
stopGenerating();
};

Expand Down

0 comments on commit 83d0443

Please sign in to comment.