fix: page no longer refreshes on stop generating button

This commit is contained in:
Daniel Avila 2023-04-09 07:32:07 -04:00
parent 5fbefa15ce
commit 83d0443c8a

View file

@ -62,7 +62,8 @@ export default function TextChat({ isSearchView = false }) {
setText('');
};
const handleStopGenerating = () => {
const handleStopGenerating = (e) => {
e.preventDefault();
stopGenerating();
};