diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz
index a3bff82..0a436f1 100644
Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ
diff --git a/packages/playground/src/components/actionsBox/actions.tsx b/packages/playground/src/components/actionsBox/actions.tsx
index efbc18f..96cef8b 100644
--- a/packages/playground/src/components/actionsBox/actions.tsx
+++ b/packages/playground/src/components/actionsBox/actions.tsx
@@ -52,24 +52,29 @@ export const ActionsBox = ({
const submit = async (e: FormEvent) => {
e.preventDefault();
- setPending(true);
- const compileTO = new Promise((resolve, reject) =>
- setTimeout(async () => {
- try {
- setPending(false);
- await compile(code);
- resolve(code);
- } catch (err) {
- reject(err);
- }
- }, 100)
- );
- await toast.promise(compileTO, {
- pending: "Compiling...",
- success: "Compiled!",
- error: "Error compiling",
- });
+ if (!compiledCode) {
+ setPending(true);
+ const compileTO = new Promise((resolve, reject) =>
+ setTimeout(async () => {
+ try {
+ setPending(false);
+ await compile(code);
+ resolve(code);
+ } catch (err) {
+ reject(err);
+ }
+ }, 100)
+ );
+
+ await toast.promise(compileTO, {
+ pending: "Compiling...",
+ success: "Compiled!",
+ error: "Error compiling",
+ });
+ } else {
+ await prove(e);
+ }
};
const prove = async (e: FormEvent) => {
@@ -116,7 +121,6 @@ export const ActionsBox = ({
Inputs
)}
@@ -145,7 +144,7 @@ export const ActionsBox = ({