Skip to content

Commit 61655b6

Browse files
committed
cleanup
1 parent c462a0f commit 61655b6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/side-panel/SidePanel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ export default function SidePanel() {
6464
};
6565
}, [client, log]);
6666

67-
// Helper function to check if input is valid (not empty and not just whitespace)
6867
const isValidInput = (input: string): boolean => {
6968
return input.trim().length > 0;
7069
};
7170

7271
const handleSubmit = () => {
73-
// Only send if the input is valid
7472
if (isValidInput(textInput)) {
7573
client.send([{ text: textInput }]);
7674

@@ -143,7 +141,6 @@ export default function SidePanel() {
143141
if (e.key === "Enter" && !e.shiftKey) {
144142
e.preventDefault();
145143
e.stopPropagation();
146-
// Only submit if input is valid
147144
if (isValidInput(textInput)) {
148145
handleSubmit();
149146
}

0 commit comments

Comments
 (0)