getting error message from backend on prompt verification

This commit is contained in:
anovazzi1 2023-04-05 22:48:31 -03:00
commit 845096d1ea

View file

@ -132,11 +132,10 @@ export default function PromptAreaModal({
} }
}) })
.catch((error) => { .catch((error) => {
console.log(error)
return setErrorData({ return setErrorData({
title: title:
"There is something wrong with this prompt, please review it", "There is something wrong with this prompt, please review it",
}); list:[error.response.data.detail]});
}); });
}} }}
> >