Skip to content

Commit

Permalink
fix: proper check for computing and compiling inside compile and comp…
Browse files Browse the repository at this point in the history
…ute witness
  • Loading branch information
azarpoor committed Oct 1, 2024
1 parent ca2191a commit e0c0437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/circuit-compiler/src/app/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand All @@ -23,7 +23,7 @@ export const computeWitness = async (
status: string,
witnessValues: Record<string, string>
) => {
if (status === "computing") {
if (status !== "computing") {
return console.log('Existing witness computation in progress')
}

Expand Down

0 comments on commit e0c0437

Please sign in to comment.