Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

show reset button when code generation fails

Abi Rajaf66631425dce
diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.ts
index 2ad578fb..7f0c0b6c 100644
--- a/frontend/src/generateCode.ts
+++ b/frontend/src/generateCode.ts
@@ -55,6 +55,7 @@ export function generateCode(
} else {
console.error("WebSocket error code", event);
toast.error(ERROR_MESSAGE);
+ onComplete();
}
});