From e0c0437040ca18b2cb962b501c6922a662e547c7 Mon Sep 17 00:00:00 2001 From: Amirhossein Azarpour Date: Tue, 1 Oct 2024 16:21:56 +0330 Subject: [PATCH] fix: proper check for computing and compiling inside compile and compute witness --- apps/circuit-compiler/src/app/actions/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/circuit-compiler/src/app/actions/index.ts b/apps/circuit-compiler/src/app/actions/index.ts index ad6f519fcd..3dcc9a7fe4 100644 --- a/apps/circuit-compiler/src/app/actions/index.ts +++ b/apps/circuit-compiler/src/app/actions/index.ts @@ -5,7 +5,7 @@ import { GROTH16_VERIFIER, PLONK_VERIFIER } from './constant' import { extractNameFromKey, extractParentFromKey } from '@remix-ui/helper' export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => { - if (appState.status === "compiling") { + if (appState.status !== "compiling") { return console.log('Existing circuit compilation in progress') } @@ -23,7 +23,7 @@ export const computeWitness = async ( status: string, witnessValues: Record ) => { - if (status === "computing") { + if (status !== "computing") { return console.log('Existing witness computation in progress') }