File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed 
src/components/side-panel Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff 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                } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments