fix: proper check for computing and compiling inside compile and compute witness

pull/5238/head
Amirhossein Azarpour 2 months ago
parent ca2191ab98
commit e0c0437040
  1. 4
      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' import { extractNameFromKey, extractParentFromKey } from '@remix-ui/helper'
export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => { export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => {
if (appState.status === "compiling") { if (appState.status !== "compiling") {
return console.log('Existing circuit compilation in progress') return console.log('Existing circuit compilation in progress')
} }
@ -23,7 +23,7 @@ export const computeWitness = async (
status: string, status: string,
witnessValues: Record<string, string> witnessValues: Record<string, string>
) => { ) => {
if (status === "computing") { if (status !== "computing") {
return console.log('Existing witness computation in progress') return console.log('Existing witness computation in progress')
} }

Loading…
Cancel
Save