Skip to content

Commit 47cfe4d

Browse files
azarpoorAniket-Engg
authored andcommitted
fix: proper check for computing and compiling inside compile and compute witness
1 parent f39e475 commit 47cfe4d

File tree

1 file changed

+2
-2
lines changed
  • apps/circuit-compiler/src/app/actions

1 file changed

+2
-2
lines changed

apps/circuit-compiler/src/app/actions/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GROTH16_VERIFIER, PLONK_VERIFIER } from './constant'
55
import { extractNameFromKey, extractParentFromKey } from '@remix-ui/helper'
66

77
export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => {
8-
if (appState.status === "compiling") {
8+
if (appState.status !== "compiling") {
99
return console.log('Existing circuit compilation in progress')
1010
}
1111

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

0 commit comments

Comments
 (0)