From f66631425dce5a732666de68752173ad31cd034c Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 21 Nov 2023 11:08:51 -0500 Subject: [PATCH] show reset button when code generation fails --- frontend/src/generateCode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.ts index 2ad578f..7f0c0b6 100644 --- a/frontend/src/generateCode.ts +++ b/frontend/src/generateCode.ts @@ -55,6 +55,7 @@ export function generateCode( } else { console.error("WebSocket error code", event); toast.error(ERROR_MESSAGE); + onComplete(); } });