From 7e9bca43f53c14037e949d438238afbb73d891cb Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 9 Aug 2024 17:26:30 +0100 Subject: [PATCH] fix dispatch --- 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 6a80b992e4..aba210d85c 100644 --- a/apps/circuit-compiler/src/app/actions/index.ts +++ b/apps/circuit-compiler/src/app/actions/index.ts @@ -153,9 +153,9 @@ export const generateProof = async (plugin: CircomPluginClient, appState: AppSta ], _pubSignals: publicSignals }, null, 2)) - dispatch({ type: 'SET_COMPILER_STATUS', payload: 'idle' }) - dispatch({ type: 'SET_PROOF_FEEDBACK', payload: null }) } + dispatch({ type: 'SET_COMPILER_STATUS', payload: 'idle' }) + dispatch({ type: 'SET_PROOF_FEEDBACK', payload: null }) } catch (e) { dispatch({ type: 'SET_COMPILER_STATUS', payload: 'errored' }) dispatch({ type: 'SET_PROOF_FEEDBACK', payload: e.message })