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') }