From 7471fe763c73a48ac5e3260efbc58b23f424c88a Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 5 Apr 2023 22:34:28 -0300 Subject: [PATCH] added console.log for erro debug --- src/frontend/src/modals/promptModal/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/modals/promptModal/index.tsx b/src/frontend/src/modals/promptModal/index.tsx index 1b85f92bb..e958d2a45 100644 --- a/src/frontend/src/modals/promptModal/index.tsx +++ b/src/frontend/src/modals/promptModal/index.tsx @@ -131,12 +131,13 @@ export default function PromptAreaModal({ }); } }) - .catch((_) => - setErrorData({ + .catch((error) => { + console.log(error) + return setErrorData({ title: "There is something wrong with this prompt, please review it", - }) - ); + }); + }); }} > Check & Save