Skip to content

Commit b995cc7

Browse files
gap-editorAniket-Engg
authored andcommitted
Update remix-ui-editor.tsx
1 parent 48cced5 commit b995cc7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -669,13 +669,13 @@ export const EditorUI = (props: EditorUIProps) => {
669669
}
670670
}
671671
if (askAI) {
672-
// Proceed with the original okFn logic
672+
// Proceed with the original okFn logic
673673
(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'])
679679
})();
680680
}
681681
};
@@ -686,7 +686,7 @@ export const EditorUI = (props: EditorUIProps) => {
686686
okLabel: 'Ask RemixAI',
687687
cancelLabel: 'Close',
688688
cancelFn: () => handleClose(false), // Pass false for askAI
689-
okFn: () => handleClose(true), // Pass true for askAI
689+
okFn: () => handleClose(true), // Pass true for askAI
690690
message: (
691691
<div>
692692
{' '}

0 commit comments

Comments
 (0)