Skip to content

πŸŽ₯ Make videos programmatically with React

`create-video`: Fix "Open in Cursor" prompt

Jonny Burgerad53ba45dc66
diff --git a/packages/create-video/src/open-in-editor-flow.ts b/packages/create-video/src/open-in-editor-flow.ts
index d593b1e339..3c61bc9683 100644
--- a/packages/create-video/src/open-in-editor-flow.ts
+++ b/packages/create-video/src/open-in-editor-flow.ts
@@ -19,7 +19,7 @@ export const openInEditorFlow = async (projectRoot: string) => {
const displayName = getDisplayNameForEditor(guiEditor.command);
- const should = await prompts({
+ const {answer} = await prompts({
message: `πŸ’» Open in ${displayName}?`,
initial: true,
type: 'toggle',
@@ -28,7 +28,7 @@ export const openInEditorFlow = async (projectRoot: string) => {
inactive: 'No',
});
- if (should) {
+ if (answer) {
await launchEditor({
colNumber: 1,
editor: guiEditor,