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