@@ -669,13 +669,13 @@ export const EditorUI = (props: EditorUIProps) => {
669
669
}
670
670
}
671
671
if ( askAI ) {
672
- // Proceed with the original okFn logic
672
+ // Proceed with the original okFn logic
673
673
( async ( ) => {
674
- await props . plugin . call ( 'popupPanel' , 'showPopupPanel' , true )
675
- setTimeout ( async ( ) => {
676
- props . plugin . call ( 'remixAI' , 'chatPipe' , 'vulnerability_check' , pastedCodePrompt )
677
- } , 500 )
678
- _paq . push ( [ 'trackEvent' , 'ai' , 'remixAI' , 'vulnerability_check_pasted_code' ] )
674
+ await props . plugin . call ( 'popupPanel' , 'showPopupPanel' , true )
675
+ setTimeout ( async ( ) => {
676
+ props . plugin . call ( 'remixAI' , 'chatPipe' , 'vulnerability_check' , pastedCodePrompt )
677
+ } , 500 )
678
+ _paq . push ( [ 'trackEvent' , 'ai' , 'remixAI' , 'vulnerability_check_pasted_code' ] )
679
679
} ) ( ) ;
680
680
}
681
681
} ;
@@ -686,7 +686,7 @@ export const EditorUI = (props: EditorUIProps) => {
686
686
okLabel : 'Ask RemixAI' ,
687
687
cancelLabel : 'Close' ,
688
688
cancelFn : ( ) => handleClose ( false ) , // Pass false for askAI
689
- okFn : ( ) => handleClose ( true ) , // Pass true for askAI
689
+ okFn : ( ) => handleClose ( true ) , // Pass true for askAI
690
690
message : (
691
691
< div >
692
692
{ ' ' }
0 commit comments