From 47cfe4d211f3eb088230a3559b86dcfbeedc78bf 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 ad6f519fcd1..3dcc9a7fe4a 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') }